fling zooms map during scroll
Categories
(Core :: Panning and Zooming, defect, P3)
Tracking
()
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.
Comment 1•1 year ago
|
||
cc Dan, this is the sort of thing that we hoped would be fixed by bug 1168182.
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Comment 2•1 year ago
|
||
Another page where I see this
https://zwiftinsider.com/sgurr-8/
Comment 3•1 year ago
|
||
The severity field is not set for this bug.
:botond, could you have a look please?
For more information, please visit BugBot documentation.
Comment 4•1 year ago
|
||
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.
Comment 5•1 year ago
|
||
Comment 6•1 year ago
|
||
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.
Assignee | ||
Comment 7•1 year ago
|
||
(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.
Assignee | ||
Updated•11 months ago
|
Assignee | ||
Updated•11 months ago
|
Assignee | ||
Comment 8•11 months ago
|
||
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.
Comment 10•10 months ago
|
||
Backed out for causing wd failures @ webdriver/tests/bidi/input/perform_actions/wheel.py
Backout link: https://hg.mozilla.org/integration/autoland/rev/e0428c780b518e590137a3f9eece3a415d35e5df
Assignee | ||
Comment 11•10 months ago
|
||
I haven't been able to reproduce this locally, but I'll try to repro via a try push.
Assignee | ||
Updated•10 months ago
|
Assignee | ||
Comment 12•10 months ago
|
||
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.
Reporter | ||
Comment 13•10 months ago
|
||
Did google maps change? Did we change?
Updated•10 months ago
|
Comment 14•10 months ago
|
||
Comment 15•10 months ago
|
||
bugherder |
Description
•