Closed Bug 1713584 Opened 3 years ago Closed 3 years ago

double tap scrolls when it should zoom out

Categories

(Core :: Panning and Zooming, defect)

defect

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox89 --- wontfix
firefox90 --- wontfix
firefox91 --- fixed

People

(Reporter: tnikkel, Assigned: tnikkel)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Reporting at bug 1710050, comment 3.

I think I see why now the 90% check of bug 1707560 was there, to prevent situations like this. But that bug fixed a real problem so we want to make a forward fix of this issue.

The problem happens when we take a tall element and change our rect to have the same aspect ratio as the composited area. We center the new rect on the tap point, so unless the cursor is in he center of the screen the new rect will be out of the composited area. This is fine if we actually zoom, but if we are already zoomed it will just result in scrolling, which we do not want. We want to zoom out in this situation.

Since ZoomToRect performs any scrolling and zooming to zoom to the rect we can just do that scrolling ourselves and give the two rects a common origin and then decide if we are already zoomed in as far as we can for this tap point.

Assignee: nobody → tnikkel
Status: NEW → ASSIGNED

Depends on D116367

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

Pushed by tnikkel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/768cf94d95a9
In calculating if a rect is zoomed in shift the rect and the composited area to a common origin. r=botond,emilio
https://hg.mozilla.org/integration/autoland/rev/dee157f4de04
Add test. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch

The patch landed in nightly and beta is affected.
:tnikkel, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(tnikkel)
Flags: in-testsuite+

Botond, Emilio, any opinion re comment 6?

Flags: needinfo?(emilio)
Flags: needinfo?(botond)

Oh, sorry, this got lost. I lean towards not uplifting it I guess.

Flags: needinfo?(tnikkel)
Flags: needinfo?(emilio)
Flags: needinfo?(botond)
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: