An APZHandledResult is returned for dynamic toolbar movement is improper for pull-to-refresh
Categories
(Core :: Panning and Zooming, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox132 | --- | fixed |
People
(Reporter: hiro, Assigned: hiro)
References
Details
Attachments
(2 files)
I think this is a remaining case that we do trigger pull-to-refresh inappropriately on Uber.com (bug 1903682).
Attaching file is a test case to see this improper pull-to-refresh. STR is;
- Open the attachment with enabling both of dynamic toolbar and pull-to-refresh
- Scroll down the blue area until the dynamic toolbar hidden, the blue area is a sub scroll container
- Try to move up on the white area to make the dynamic toolbar visible
- Try to scroll up the blue-ish area
You can see pull-to-refresh is triggered even though the blue-ish area should scroll up.
(In reply to Markus Stange [:mstange] from bug 1903682 comment 0)
Steps to reproduce:
- Go to https://m.uber.com/
- Log in with your Uber account.
- Open the sidebar with the hamburger button in the top right.
- Tap on "My Trips".
- Scroll down to the "Past" section and to the bottom of the list of your past trips (the list has four entries for me).
- Try to scroll back up.
I guess the sidebar (or the "My Trips") is a sub scroll container.
Anyways, the code in question is here in APZHandledResult::UpdateForTouchEvent. Though we do use the root content APZC to set APZHandledResult::mOverScrollDirections, at that moment when we try to scroll up the sub scroll container, the root content APZC's scroll position is 0, thus it triggers pull-to-refresh.
Assignee | ||
Comment 1•19 days ago
|
||
Though I personally think this fix is subtle, I have no other good idea to
solve the issue. Once after we have a separate API for dynamic toolbar, we
could handle this bug case in a clearer way.
This change doesn't have a dedicated test since there have been two JUnit tests
hitting this bug conditions.
(If we had been running tests on browsers which support both dynamic toolbar
and pull-to-refresh, this bug might have been noticed earlier?)
Updated•19 days ago
|
Assignee | ||
Updated•18 days ago
|
Comment 3•14 days ago
|
||
bugherder |
Description
•