Dragging outside of canvas scrolls page up
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr78 | --- | wontfix |
| firefox82 | --- | wontfix |
| firefox83 | --- | wontfix |
| firefox84 | --- | wontfix |
| firefox85 | --- | fix-optional |
People
(Reporter: wjmacfarland, Unassigned)
References
(Regression, )
Details
(Keywords: parity-chrome, regression, reproducible)
Attachments
(1 file)
|
936 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
Steps to reproduce:
Click within game window on https://unexploredterritories.com/ and drag (to move character.) Release mouse outside of the canvas.
Actual results:
The page scrolls up removing the game window from view.
Expected results:
The page shouldn't scroll at all in this case. Tested in Microsoft Edge and Opera and the correct behavior occurs.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Updated•5 years ago
|
Comment 3•5 years ago
|
||
This is some issue related how PresShell::ScrollContentIntoView determines the right scroll position when focusing an element. If the starting document scroll position and/or the height values in the testcase are adjusted, the testcase can be made to not scroll using the same steps.
The focus behaviour seems correct here, but the scrolling behaviour could be modified to not adjust the position under some circumstances that would fix the case here. Not sure what that would be, perhaps don't scroll if the element is already visible but larger that the display?
It doesn't reproduce in other browsers only because the root element doesn't seem to be focusable there.
Updated•5 years ago
|
Neil, do you think you could take this bug?
| Reporter | ||
Comment 5•5 years ago
|
||
Do any JS ninjas know a workaround to this issue for the time being? Hoping to update my web-game to avoid the issue for Firefox users.
Updated•5 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Description
•