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

Add library which generates "touchstarted" events #39

Open
RByers opened this issue May 2, 2016 · 1 comment
Open

Add library which generates "touchstarted" events #39

RByers opened this issue May 2, 2016 · 1 comment

Comments

@RByers
Copy link
Member

RByers commented May 2, 2016

Like #38, another library useful for easy adoption would be to expose a new set of events: touchstarted and touchmoved (like the API discussed in #24) or aftertouchstart and aftertouchmove. These would be implemented on top of passive touch listeners (perhaps via a setTimeout(0)). This would have the advantage of making it easy for script consuming DOM events via various frameworks (like jquery/jquery#2871) to opt-in to using passive touch listeners.

Thoughts?

@RByers
Copy link
Member Author

RByers commented May 2, 2016

Of course an obvious downside of this approach is that it doubles the event dispatch costs, which in the case of touchmove can sometimes add up to a non-trivial fraction of the frame budget.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant