Skip to content

Problem with PhantomJS and touch events #9

@felquis

Description

@felquis

The problem is that 'ontouchevent' in window return true in PhantomJS and there's no way to disable touch events in PhantomJS on runtime. For this reason, the tests with mouseup are failing.

And because this, the tests for libraries are also failing because when ontouchevent is present we don't actually use libraries to delegate the events but addEventListener.

We could use !global.window.mochaPhantomJS in this line:

if ('ontouchstart' in global && !global.window.mochaPhantomJS) { ... }

But I don't think this is a good solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions