Closed Bug 1809080 Opened 2 years ago Closed 2 years ago

Pinch-to-zoom in pdf viewer doesn't work anymore when using trackpad on Mac

Categories

(Firefox :: PDF Viewer, defect, P1)

Firefox 110
Unspecified
macOS
defect

Tracking

()

VERIFIED FIXED
110 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox108 --- unaffected
firefox109 --- verified
firefox110 --- verified

People

(Reporter: calixte, Assigned: calixte)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

In Nightly, pinching on the MacBook trackpad leads to zoom all the window content (pdf.js toolbar included) when it must only zooms the pages.
In using mozregression, I got:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=db51149fe9596f05600937729cb381b9a3ac390b&tochange=46dae1c56dade459258373ddfed526da69c68c49

Set release status flags based on info from the regressing bug 1781960

:cpeterson, since you are the author of the regressor, bug 1781960, could you take a look? Also, could you set the severity field?

For more information, please visit auto_nag documentation.

Flags: needinfo?(cpeterson)

Because of the mentioned patch, the getter here doesn't return the same value as before:
https://searchfox.org/mozilla-central/rev/d62c4c4d5547064487006a1506287da394b64724/toolkit/components/pdfjs/content/PdfStreamConverter.jsm#386
and consequently we don't catch the wheel events anymore:
https://github.com/mozilla/pdf.js/blob/067d3b70aa46e1b2a3dff768c36ff5ba670407f2/web/app.js#L2631-L2641
So we need have a way to guess that ctrl+wheel is coming from a pinch.

Summary: Pinch-to-zoom doesn't work anymore when using trackpad on Mac → Pinch-to-zoom in pdf viewer doesn't work anymore when using trackpad on Mac
Assignee: nobody → cdenizet
Status: NEW → ASSIGNED
Flags: needinfo?(cpeterson)
Severity: -- → S3
Priority: -- → P1

Comment on attachment 9311569 [details]
Bug 1809080 - Pinch-to-zoom in pdf viewer when using the trackpad on Mac r=#pdfjs-reviewers,RyanVM

Beta/Release Uplift Approval Request

  • User impact if declined: Mac users who are zooming a pdf in using pinch-to-zoom on a trackpad will be disappointed.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: - Open a pdf on mac
  • pinch in using the trackpad
  • only the pdf must be zoomed and not the toolbar
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Only few lines, easy to test and pdf.js is self-contained.
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9311569 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Attachment #9311569 - Flags: approval-mozilla-beta? → approval-mozilla-release?
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch

Comment on attachment 9311569 [details]
Bug 1809080 - Pinch-to-zoom in pdf viewer when using the trackpad on Mac r=#pdfjs-reviewers,RyanVM

Approved for 109.0rc2, thanks.

Attachment #9311569 - Flags: approval-mozilla-release? → approval-mozilla-release+

Reproduced the issue with Firefox 110.0a1 (2023-01-08) on macOS 11.5. PDF toolbar is also zoomed when using pinch to zoom on a PDF.
The issue is verified fixed with Firefox 110.0a1 (2022-01-12) and Firefox 109.0RC2 (20230112150232) on macOS 10.15, 11.5, and 12. PDF toolbar is no longer zoomed in and the PDF can be successfully zoomed out when using pinch to zoom on a PDF while using a trackpad.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: