Support Pointer events specification
See original GitHub issueWhat is your approach to IE10 touch events?
Hammer.js checks window.navigator.pointerEnabled || window.navigator.msPointerEnabled
and then switches touchstart
, touchmove
, touchend touchcancel
to pointerdown MSPointerDown
, pointermove MSPointerMove
, pointerup pointercancel MSPointerUp MSPointerCancel
.
Issue Analytics
- State:
- Created 10 years ago
- Reactions:16
- Comments:40 (20 by maintainers)
Top Results From Across the Web
Pointer Events - W3C
The features in this specification extend or modify those found in Pointer Events, a W3C Recommendation that describes events and related ...
Read more >Pointer events | Can I use... Support tables for HTML5, CSS3, etc
This specification integrates various inputs from mice, touchscreens, and pens, making separate implementations no longer necessary and authoring for cross- ...
Read more >Pointer events - Web APIs | MDN
Pointer events are DOM events that are fired for a pointing device. They are designed to create a single DOM event model to...
Read more >Pointer events - The Modern JavaScript Tutorial
As of now, Pointer Events Level 2 specification is supported in all major browsers, while the newer Pointer Events Level 3 is in...
Read more >Intent to Ship: Pointer Events - Google Groups
The Pointer Events API is a low-level input API for mouse, touch and stylus first introduced by Microsoft and then standardized in the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
so React still doesn’t support
the authors don’t want it or they are open to a PR?
I wrote a component that allows declarative pointer event binding, and has been working for me as an easy substitute until React officially supports them.
Update: <Pointable /> now lives in its own repo and is on npm: https://www.npmjs.com/package/react-pointable
While it’s great Chrome and FF are shipping pointer events, Safari is my biggest worry. To that end, this component plays well with the official pointer events polyfill project for wide support.