Unexpected horizontal scrolling at the end of a vertical pan - lifting the finger breaks the axis lock
Categories
(Core :: Panning and Zooming, defect, P3)
Tracking
()
People
(Reporter: mstange, Assigned: dlrobertson)
References
(Blocks 2 open bugs)
Details
Attachments
(4 files)
On Android, when panning to the bottom of a page that's scrollable on both axes, the page sometimes scrolls horizontally once the finger is lifted.
Steps to reproduce:
- Go to https://phabricator.services.mozilla.com/D208427
- Scroll to the bottom with a series of flings.
Sometimes the page ends up being scrolled horizontally once you reach the bottom, because the scroll gesture happened to be slightly diagonal.
This is unexpected - if we only scroll vertically while the fingers are on the screen, then we should continue to only scroll vertically once the fingers are no longer on the screen.
I think what happens is that, when we initiate the fling at the end of the pan, we don't respect the current axis lock, so we can initiate a horizontal fling even if the pan was locked vertically.
Reporter | ||
Comment 1•9 months ago
|
||
It's often easier to reproduce this in the other direction - horizontal pans starting vertical flings.
In this recording, I did a horizontal pan, and then started moving my fingers vertically, before I lifted them. The vertical motion is ignored while the fingers are on the screen, but then gets translated into a vertical fling once the fingers are lifted.
Updated•9 months ago
|
Comment 2•8 months ago
|
||
The severity field is not set for this bug.
:botond, could you have a look please?
For more information, please visit BugBot documentation.
Updated•8 months ago
|
Assignee | ||
Updated•6 months ago
|
Assignee | ||
Comment 3•6 months ago
|
||
Ensure that a fling animation following a touch scroll respects the axis
lock used durring the gesture.
Comment 4•1 month ago
|
||
Are we waiting for additional changes or reviews on these patches? Just checking in. Thanks.
Assignee | ||
Comment 5•1 month ago
|
||
Just got some extra info on the patch... I'll figure out next steps today.
Assignee | ||
Comment 6•5 days ago
|
||
Not all flings should allow for handoff. A overscroll fling should be
able to handoff residual velocity to a APZC earlier in the overscroll
handoff chain, but a fling that starts in an APZC that is not scrollable
in the given direction should not handoff.
Description
•