Changeset 274853 in webkit
- Timestamp:
- Mar 23, 2021 1:52:12 AM (16 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/tiled-drawing/scrolling/scroll-snap/scroll-snap-momentum-in-non-snapping-axis-expected.txt (added)
-
LayoutTests/tiled-drawing/scrolling/scroll-snap/scroll-snap-momentum-in-non-snapping-axis.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/ScrollSnapAnimatorState.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r274852 r274853 1 2021-03-23 Martin Robinson <mrobinson@igalia.com> 2 3 No scrolling momentum with 'scroll-snap-type: x mandatory' if the scroller scrolls vertically 4 https://bugs.webkit.org/show_bug.cgi?id=213571 5 <rdar://problem/64715507> 6 7 Reviewed by Simon Fraser. 8 9 * tiled-drawing/scrolling/scroll-snap/scroll-snap-momentum-in-non-snapping-axis-expected.txt: Added. 10 * tiled-drawing/scrolling/scroll-snap/scroll-snap-momentum-in-non-snapping-axis.html: Added. 11 1 12 2021-03-23 Said Abou-Hallawa <said@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r274852 r274853 1 2021-03-23 Martin Robinson <mrobinson@igalia.com> 2 3 No scrolling momentum with 'scroll-snap-type: x mandatory' if the scroller scrolls vertically 4 https://bugs.webkit.org/show_bug.cgi?id=213571 5 <rdar://problem/64715507> 6 7 Reviewed by Simon Fraser. 8 9 When handling momentum scrolling for scroll containers that snap, use the 10 predicted momentum scroll destination for axes that do not snap. Using 11 the initial scroll offset here was causing momentum scrolling in these axes 12 to end prematurely. 13 14 Test: tiled-drawing/scrolling/scroll-snap/scroll-snap-momentum-in-non-snapping-axis.html 15 16 * platform/ScrollSnapAnimatorState.cpp: 17 (WebCore::ScrollSnapAnimatorState::targetOffsetForStartOffset const): Use the predicted 18 scroll offset. Even though the startOffset parameter is no longer used, do not remove 19 it because it will be used in the fix for https://bugs.webkit.org/show_bug.cgi?id=223406. 20 1 21 2021-03-23 Said Abou-Hallawa <said@apple.com> 2 22 -
trunk/Source/WebCore/platform/ScrollSnapAnimatorState.cpp
r274726 r274853 97 97 if (snapOffsets.isEmpty()) { 98 98 outActiveSnapIndex = invalidSnapOffsetIndex; 99 return clampTo<float>( startOffset, 0, maxScrollOffset);99 return clampTo<float>(predictedOffset, 0, maxScrollOffset); 100 100 } 101 101
Note: See TracChangeset
for help on using the changeset viewer.