Add Pointer Event gesture support for pinch zooming
See original GitHub issueHello,
Currently I am unable to zoom using pinch gestures on a Surface RT tablet with IE11, neither in metro interface, nor in desktop. Everything seems to be working well on Android and iOS, so I guess it has something to do with pointer events, which seem to be supported in the current version.
I have disabled the default touch interaction for the container which is used for zooming, using the -ms-touch-action: none;
css style so that such events are handled in javascript, but to no avail.
Any idea what I might be doing wrong?
Thanks!
Issue Analytics
- State:
- Created 10 years ago
- Comments:22 (5 by maintainers)
Top Results From Across the Web
Pinch zoom gestures - Web APIs | MDN
The pinch in (zoom out) gesture, which moves the two pointers toward each other, changes the target element's background color to lightblue ....
Read more >Pointer Event pinch/zoom gesture - CodePen
Pointer Event pinch /zoom gesture ... Touch and Hold with 2 pointers, then pinch in or out. The background color will change to...
Read more >Pinch me, I'm zooming: gestures in the DOM
When performing a pinch-zoom gesture, Firefox and Chrome produce a wheel event with a deltaY: ±scale, ctrlKey: true . They produce an identical ......
Read more >Implementing custom pinch gesture in AR - Babylon.js Forum
XR doesn't support pointer events. we emulate them for your convenience, but it is not a full pointer event. WebXR uses the select...
Read more >Pinch/zoom with pointer events in Javascript clarification
If two touching fingers are moved simultaneously with fixed distance, I assume the browser will generate interleaved pointer events for two ...
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 FreeTop 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
Top GitHub Comments
Finally, a workaround!
Here’s what I did:
window.MSPointerEvent
andwindow.PointerEvent
toundefined
to disable panzoom’s detection for pointer events and thus disable the broken pointer events implementation of panzoom and enable the touch api implementation instead.Not the best solution, but something that at least I can live with. “Native” support for pointer events is still welcome, because of IE10.
I have a Lenovo All in one with touch screen. I cannot get this to work with the touch screen either. Chrome or IE. I even tried above demo and pinch zoom did not zoom. mouse wheel works fine.