question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Pointer events specification

See original GitHub issue

What 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:closed
  • Created 10 years ago
  • Reactions:16
  • Comments:40 (20 by maintainers)

github_iconTop GitHub Comments

8reactions
caubcommented, Dec 2, 2017

so React still doesn’t support

<div onPointerDown={console.log}>foo</div>

the authors don’t want it or they are open to a PR?

6reactions
MilllerTimecommented, Apr 7, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found