add code for preffed off double tap to zoom on mac
Categories
(Core :: Panning and Zooming, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: tnikkel, Assigned: tnikkel)
References
Details
Attachments
(2 files)
Assignee | ||
Comment 1•3 years ago
|
||
We already have a pref for double tap to zoom with is already enabled by default so it's kind of awkward to add another pref.
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
Hmm, I found test code in the chromium repo that checks that the smart magnify event is dispatched as a wheel event that can be preventDefaulted
and indeed Chrome does not double tap zoom if you register a wheel listener that preventDefaults. Safari however does not care about preventDefault, and does not send a wheel event.
I can file a followup bug for that, not sure what priority we want for that: 1) don't ship without it 2) we can ship without it but still spend time to implement it 3) see if we get complaints and implement if so or 4) probably not worth it.
Comment 3•3 years ago
|
||
Offhand, my suggestion would be (2). That would also be consistent with bug 1686147 where we are planning to match the Safari behaviour in the initial release, and work on matching the (more involved) Chrome behaviour subsequently.
Assignee | ||
Comment 4•3 years ago
|
||
I lean towards 3) because we don't know how big a problem it will be and we have other things that we could work on that we know how important they are.
Assignee | ||
Comment 5•3 years ago
|
||
Creating an event with type NSEventTypeSmartMagnify does not work with either NSEvent mouseEventWithType or NSEvent otherEventWithType (they both hit an assert in the appkit code). So the best we can do is call the same function.
Depends on D107389
Assignee | ||
Comment 6•3 years ago
|
||
Filed bug 1697766 for the preventdefault follow up.
Pushed by tnikkel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/14eab025027a Add code to support double tap to zoom on mac. r=botond,mstange https://hg.mozilla.org/integration/autoland/rev/ad220349088f Add test. r=botond,mstange
Comment 8•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/14eab025027a
https://hg.mozilla.org/mozilla-central/rev/ad220349088f
Description
•