Closed Bug 1863194 Opened 1 year ago Closed 10 months ago

fling zooms map during scroll

Categories

(Core :: Panning and Zooming, defect, P3)

defect

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: tnikkel, Assigned: dlrobertson)

References

()

Details

(Whiteboard: [apz-wheelevents] )

Attachments

(2 files)

Open https://agriculture.canada.ca/en/agricultural-production/weather/canadian-drought-monitor and place your mouse cursor in the middle of the page. Do a fling downwards to scroll down. The fling will stop when your cursor is over the map and then zoom the map.

cc Dan, this is the sort of thing that we hoped would be fixed by bug 1168182.

Summary: fling zoom maps during scroll → fling zooms map during scroll

Another page where I see this
https://zwiftinsider.com/sgurr-8/

See Also: → 1864884

The severity field is not set for this bug.
:botond, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(botond)

Note that I don't see this issue on my Linux box since, I believe, there's no momentum pan phase, it's rather FlingAnimation. If I don't do a fling, if I do rather keep panning, I can see the issue.

A reduced test case is; data:text/html,<iframe src="https://bug1863194.bmoattachments.org/attachment.cgi?id=9368590" style="margin-top: 30vh; margin-bottom:100vh;width: 80vw; height:40vh">

So, this is because a wheel event listener doing preventDefault() in a cross-origin iframe.

And as Dan pointed out to me in our weekly meeting, this check in UpdateWheelEventTarget is related. I confirmed dropping the check fixes this bug, I am not sure whether we can simply drop it or not though.

Severity: -- → S3
Flags: needinfo?(botond)
Priority: -- → P3

(In reply to Hiroyuki Ikezoe (:hiro) from comment #6)

A reduced test case is; data:text/html,<iframe src="https://bug1863194.bmoattachments.org/attachment.cgi?id=9368590" style="margin-top: 30vh; margin-bottom:100vh;width: 80vw; height:40vh">

So, this is because a wheel event listener doing preventDefault() in a cross-origin iframe.

And as Dan pointed out to me in our weekly meeting, this check in UpdateWheelEventTarget is related. I confirmed dropping the check fixes this bug, I am not sure whether we can simply drop it or not though.

I think the check can be dropped. IIRC I added that check largely just because I thought it seemed like the right thing to do, but I didn't think about bugs like this.

Flags: needinfo?(drobertson)
Assignee: nobody → drobertson
Flags: needinfo?(drobertson)

We should continue to use a wheel transaction for wheel events when the
browsing context changes from the current context. Avoiding the override
of the event target with the current wheel transaction can halt a page
scroll when the mouse moves over a out-of-process subframe.

Blocks: 1888946
Pushed by drobertson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f946717df0fd Do not terminate wheel transaction on browsing context change. r=hiro,smaug

I haven't been able to reproduce this locally, but I'll try to repro via a try push.

Flags: needinfo?(drobertson)
Whiteboard: [apz-wheelevents]

This now happens on google searches for me. For example, when searching for a particular location near me, if I scroll down the page over the map of nearby points of interest, the map zooms out.

Did google maps change? Did we change?

Attachment #9392838 - Attachment description: Bug 1863194 - Do not terminate wheel transaction on browsing context change. r=hiro,smaug → Bug 1863194 - Do not terminate wheel transaction on browsing context change. r=hiro,smaug,#webdriver-reviewers
Pushed by drobertson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3ea5312f88de Do not terminate wheel transaction on browsing context change. r=hiro,smaug,webdriver-reviewers,Sasha
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
See Also: → 1899921
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: