Closed Bug 1392361 Opened 8 years ago Closed 5 years ago

OS X trackpad pinch gesture (or ctrl+two-finger-pan) on PDF changes zoom like crazy

Categories

(Firefox :: PDF Viewer, defect, P3)

55 Branch
x86_64
macOS
defect

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox-esr68 --- wontfix
firefox-esr78 --- wontfix
firefox55 --- wontfix
firefox56 --- wontfix
firefox57 --- wontfix
firefox79 --- wontfix
firefox80 --- wontfix
firefox81 --- fixed

People

(Reporter: kats, Assigned: kats)

References

Details

(Keywords: regression)

Load any PDF, e.g. https://www.library.yorku.ca/spark/books_journals_more/PARCA%20Test_Final.pdf on a macbook, and use a "pinch" gesture on the trackpad. Expected: PDF zooms in or out gradually Actual: PDF zooms in or out very much, quickly jumping to 1000% or down to 25% I can repro on release, Beta and Nightly.
I'm running mozregression to find out when this happened.
Keywords: regression
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #0) > ... and use a "pinch" gesture on the trackpad. By default, locally I can only zoom in/out a web page or PDF using Cmd+two-finger-scroll, and not using pinch. Can you provide more details how to setup "pinch" gesture on the trackpad and Firefox?
Regression window is this: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=1944785ec6254237f1425dc35f873951c7716d39&tochange=134875c28871d8c8f2538c4cb1507f2e37b0713e Prior to this bug, the pinch action had no effect at all. After this bug, the pinch effect controls zooming but is far too sensitive to small pinch gestures.
(In reply to Yury Delendik (:yury) from comment #2) > By default, locally I can only zoom in/out a web page or PDF using > Cmd+two-finger-scroll, and not using pinch. Can you provide more details how > to setup "pinch" gesture on the trackpad and Firefox? There's really nothing I did in Firefox itself to set this up. It happens on a clean profile for me. Maybe OS X settings? Try checking if the "Zoom in or out" option in OS X settings -> Trackpad -> Scroll & Zoom is enabled.
macOS trackpad scrolling while pressing Ctrl is also very sensitive on pdf.js. So this was a pre-existing issue in the way pdf.js handles zoom wheel events, it's just exposed in a different way now.
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #4) > (In reply to Yury Delendik (:yury) from comment #2) > > By default, locally I can only zoom in/out a web page or PDF using > > Cmd+two-finger-scroll, and not using pinch. Can you provide more details how > > to setup "pinch" gesture on the trackpad and Firefox? > > There's really nothing I did in Firefox itself to set this up. It happens on > a clean profile for me. Maybe OS X settings? Try checking if the "Zoom in or > out" option in OS X settings -> Trackpad -> Scroll & Zoom is enabled. Nope. "Zoom in and out - Pinch with two finger" is enabled for me in the settings, but no such gesture in FF.
(In reply to Markus Stange [:mstange] from comment #5) > macOS trackpad scrolling while pressing Ctrl is also very sensitive on > pdf.js. So this was a pre-existing issue in the way pdf.js handles zoom > wheel events, it's just exposed in a different way now. Good point, I also see this behaviour. It's just easier to hit now I guess, because the pinch gesture is more natural (at least for me) to use. I filed https://github.com/mozilla/pdf.js/issues/8802 for it.
Summary: OS X trackpad pinch gesture on PDF changes zoom like crazy → OS X trackpad pinch gesture (or ctrl+two-finger-pan) on PDF changes zoom like crazy
Priority: -- → P3
See Also: → 1487882
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.