Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

isEventSimulatedFromTouch should use browser API when present #97

Description

@RByers

The isEventSimulatedFromTouch function uses a heuristic that should usually work, but may not always. There's finally an API for this: UIEvent.source capabilities.firesTouchEvents. Currently Chrome only.

See this article and the spec. My polyfill does something a little different from your 'isEventSimulatedFromTouch' function, if you've found your position-based approach to be better then I should update the polyfill.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions