haikuwebkit/LayoutTests/fast/scrolling/latching
Simon Fraser 9722388486 Scroll-chaining not triggering before complete end of overscroll
https://bugs.webkit.org/show_bug.cgi?id=219960
<rdar://problem/72595521>

Reviewed by Tim Horton.

Source/WebCore:

Scroll latching for momentum scrolls was too sticky; it would keep latching to the same
scroller within a 100ms of the last event that was handled, which was exacerbated by the
fact that ScrollController can go into "ignoreMomentumScrolls" mode which results in
no visible scrolling but continued consumption of momentum wheel events.

Fix by releasing the latch as soon as we see the end of a momentum scroll,
so that we always re-evaluate latching at the start of the next gesture.

Tested by fast/scrolling/latching/nested-cross-axis-latch-expiration.html

* page/scrolling/ScrollingTreeLatchingController.cpp:
(WebCore::ScrollingTreeLatchingController::nodeDidHandleEvent):

LayoutTests:

Adjusted test for new behavior. No longer need WK1 result.

* fast/scrolling/latching/nested-cross-axis-latch-expiration-expected.txt:
* fast/scrolling/latching/nested-cross-axis-latch-expiration.html:
* platform/mac-wk1/fast/scrolling/latching/nested-cross-axis-latch-expiration-expected.txt: Removed.

Canonical link: https://commits.webkit.org/233237@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@271730 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-01-22 02:48:17 +00:00
..
resources
iframe-latch-small-deltas-expected.txt
iframe-latch-small-deltas.html Remove experimental: and internal: prefixes from test header commands 2020-11-04 15:56:26 +00:00
iframe_in_iframe-expected.txt
iframe_in_iframe.html
latched-scroll-in-passive-region-expected.txt Scrolls in the passive event region only send one wheel event to the DOM 2020-10-15 19:24:40 +00:00
latched-scroll-in-passive-region.html Scrolls in the passive event region only send one wheel event to the DOM 2020-10-15 19:24:40 +00:00
latched-scroll-into-nonfast-region-expected.txt REGRESSION (r266262): Scroll latching fails when scrolling into a preventDefault() region 2020-08-30 22:09:22 +00:00
latched-scroll-into-nonfast-region.html Remove experimental: and internal: prefixes from test header commands 2020-11-04 15:56:26 +00:00
latched-scroll-remove-iframe-expected.txt Add missing test result from r266333. 2020-08-30 19:45:18 +00:00
latched-scroll-remove-iframe.html [ macOS wk2 ] fast/scrolling/latching/latched-scroll-remove-iframe.html is a flaky failure 2020-10-23 18:49:32 +00:00
latching-and-wheel-events-expected.txt
latching-and-wheel-events.html
latching-stuck-to-main-page-expected.txt
latching-stuck-to-main-page.html Remove experimental: and internal: prefixes from test header commands 2020-11-04 15:56:26 +00:00
nested-cross-axis-latch-expiration-expected.txt Scroll-chaining not triggering before complete end of overscroll 2021-01-22 02:48:17 +00:00
nested-cross-axis-latch-expiration.html Scroll-chaining not triggering before complete end of overscroll 2021-01-22 02:48:17 +00:00
overflow-hidden-on-one-axis-expected.txt Source/WebCore: 2021-01-21 18:46:05 +00:00
overflow-hidden-on-one-axis.html Source/WebCore: 2021-01-21 18:46:05 +00:00
overflow-in-iframe-latching-expected.txt
overflow-in-iframe-latching.html
scroll-div-latched-div-expected.txt
scroll-div-latched-div.html
scroll-div-latched-mainframe-expected.txt
scroll-div-latched-mainframe.html
scroll-div-no-latching-expected.txt
scroll-div-no-latching.html
scroll-div-with-nested-nonscrollable-iframe-expected.txt
scroll-div-with-nested-nonscrollable-iframe.html
scroll-iframe-fragment-expected.txt
scroll-iframe-fragment.html
scroll-iframe-in-overflow-expected.txt
scroll-iframe-in-overflow.html
scroll-iframe-latched-iframe-expected.txt
scroll-iframe-latched-iframe.html
scroll-iframe-latched-mainframe-expected.txt
scroll-iframe-latched-mainframe.html
scroll-iframe-webkit1-latching-bug-expected.txt
scroll-iframe-webkit1-latching-bug.html
scroll-latched-nested-div-expected.txt
scroll-latched-nested-div.html Only the first wheel event in a gesture should be cancelable 2020-12-04 07:10:03 +00:00
scroll-nested-iframe-expected.txt
scroll-nested-iframe.html Rewrite main thread scroll latching logic 2020-08-30 17:25:15 +00:00
scroll-select-bottom-test-expected.txt
scroll-select-bottom-test.html
scroll-select-latched-mainframe-expected.txt
scroll-select-latched-mainframe.html
scroll-select-latched-select-expected.txt
scroll-select-latched-select.html
scroll-snap-latching-expected.txt REGRESSION: Scroll snapping triggers body scroll 2020-12-23 18:51:36 +00:00
scroll-snap-latching.html REGRESSION: Scroll snapping triggers body scroll 2020-12-23 18:51:36 +00:00