(Maybe) disable one-touch-pinch gesture on desktop
Categories
(Core :: Panning and Zooming, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox81 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
Details
Attachments
(1 file)
The one-touch-pinch gesture is enabled on desktop with apz.allow_zooming=true. However this gesture is an Android-ism that we might not want to keep on desktop. In particular, if web content wants to disable browser zooming (because e.g. they implement it themselves like in Google Maps or pdf.js) then there's no way for them to prevent the one-touch-pinch. On Android it's possible to use meta-viewport tags to block all zooming, but meta-viewport tags are ignored on desktop. The best you can do is call preventDefault() on touchstart events with >1 points (which is what I did for pdf.js) but that only blocks two-finger pinch gestures and not one-touch-pinch.
| Assignee | ||
Comment 1•5 years ago
|
||
I guess technically it's still possible for web content to block the gesture, but it would have to implement a touch gesture recognizer that exactly matches the one in the APZ code, and call preventDefault on that second touchstart. But that's not a reasonable thing to be doing.
| Assignee | ||
Comment 2•5 years ago
|
||
Comment 4•5 years ago
|
||
| bugherder | ||
Description
•