Changeset 271730 in webkit
- Timestamp:
- Jan 21, 2021 6:48:17 PM (18 months ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/scrolling/latching/nested-cross-axis-latch-expiration-expected.txt (modified) (1 diff)
-
LayoutTests/fast/scrolling/latching/nested-cross-axis-latch-expiration.html (modified) (1 diff)
-
LayoutTests/platform/mac-wk1/fast/scrolling/latching/nested-cross-axis-latch-expiration-expected.txt (deleted)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/scrolling/ScrollingTreeLatchingController.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r271720 r271730 1 2021-01-21 Simon Fraser <simon.fraser@apple.com> 2 3 Scroll-chaining not triggering before complete end of overscroll 4 https://bugs.webkit.org/show_bug.cgi?id=219960 5 <rdar://problem/72595521> 6 7 Reviewed by Tim Horton. 8 9 Adjusted test for new behavior. No longer need WK1 result. 10 11 * fast/scrolling/latching/nested-cross-axis-latch-expiration-expected.txt: 12 * fast/scrolling/latching/nested-cross-axis-latch-expiration.html: 13 * platform/mac-wk1/fast/scrolling/latching/nested-cross-axis-latch-expiration-expected.txt: Removed. 14 1 15 2021-01-21 Julian Gonzalez <julian_a_gonzalez@apple.com> 2 16 -
trunk/LayoutTests/fast/scrolling/latching/nested-cross-axis-latch-expiration-expected.txt
r271701 r271730 1 1 PASS innerOverflowScrollEventCount > 0 is true 2 PASS outerOverflowScrollEventCount is 02 PASS outerOverflowScrollEventCount > 0 is true 3 3 PASS windowScrollEventCount is 0 4 4 PASS successfullyParsed is true -
trunk/LayoutTests/fast/scrolling/latching/nested-cross-axis-latch-expiration.html
r271701 r271730 108 108 { 109 109 shouldBeTrue('innerOverflowScrollEventCount > 0'); 110 shouldBe ('outerOverflowScrollEventCount', '0');110 shouldBeTrue('outerOverflowScrollEventCount > 0'); 111 111 shouldBe('windowScrollEventCount', '0'); 112 112 finishJSTest(); -
trunk/Source/WebCore/ChangeLog
r271725 r271730 1 2021-01-21 Simon Fraser <simon.fraser@apple.com> 2 3 Scroll-chaining not triggering before complete end of overscroll 4 https://bugs.webkit.org/show_bug.cgi?id=219960 5 <rdar://problem/72595521> 6 7 Reviewed by Tim Horton. 8 9 Scroll latching for momentum scrolls was too sticky; it would keep latching to the same 10 scroller within a 100ms of the last event that was handled, which was exacerbated by the 11 fact that ScrollController can go into "ignoreMomentumScrolls" mode which results in 12 no visible scrolling but continued consumption of momentum wheel events. 13 14 Fix by releasing the latch as soon as we see the end of a momentum scroll, 15 so that we always re-evaluate latching at the start of the next gesture. 16 17 Tested by fast/scrolling/latching/nested-cross-axis-latch-expiration.html 18 19 * page/scrolling/ScrollingTreeLatchingController.cpp: 20 (WebCore::ScrollingTreeLatchingController::nodeDidHandleEvent): 21 1 22 2021-01-21 Peng Liu <peng.liu6@apple.com> 2 23 -
trunk/Source/WebCore/page/scrolling/ScrollingTreeLatchingController.cpp
r270425 r271730 96 96 97 97 if (wheelEvent.useLatchedEventElement() && m_latchedNodeAndSteps && m_latchedNodeAndSteps->scrollingNodeID == scrollingNodeID) { 98 m_lastLatchedNodeInterationTime = MonotonicTime::now(); 98 if (wheelEvent.isEndOfMomentumScroll()) 99 m_lastLatchedNodeInterationTime = { }; 100 else 101 m_lastLatchedNodeInterationTime = MonotonicTime::now(); 99 102 return; 100 103 }
Note: See TracChangeset
for help on using the changeset viewer.