Changeset 284778 in webkit
- Timestamp:
- Oct 25, 2021, 5:35:28 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/scrolling/gtk/repeated-mouse-wheel-smooth-expected.txt (added)
-
LayoutTests/fast/scrolling/gtk/repeated-mouse-wheel-smooth.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/ScrollAnimationSmooth.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r284776 r284778 1 2021-10-25 Chris Lord <clord@igalia.com> 2 3 [GTK][WPE] REGRESSION(r284596): Scrolling sometimes jumps to the top of the page during smooth mouse-wheel scrolling 4 https://bugs.webkit.org/show_bug.cgi?id=232229 5 6 Reviewed by Carlos Garcia Campos. 7 8 Add test to make sure that retargeted smooth scrolling doesn't jump to 9 the top of the page unexpectedly. 10 11 * fast/scrolling/gtk/repeated-mouse-wheel-smooth-expected.txt: Added. 12 * fast/scrolling/gtk/repeated-mouse-wheel-smooth.html: Added. 13 1 14 2021-10-25 Arcady Goldmints-Orlov <agoldmints@igalia.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r284773 r284778 1 2021-10-25 Chris Lord <clord@igalia.com> 2 3 [GTK][WPE] REGRESSION(r284596): Scrolling sometimes jumps to the top of the page during smooth mouse-wheel scrolling 4 https://bugs.webkit.org/show_bug.cgi?id=232229 5 6 Reviewed by Carlos Garcia Campos. 7 8 Make sure that retargeting a smooth scroll animation before a frame 9 callback is called works correctly. 10 11 Test: fast/scrolling/gtk/repeated-mouse-wheel-smooth.html 12 13 * platform/ScrollAnimationSmooth.cpp: 14 (WebCore::ScrollAnimationSmooth::startAnimatedScrollToDestination): 15 1 16 2021-10-25 Ziran Sun <zsun@igalia.com> 2 17 -
trunk/Source/WebCore/platform/ScrollAnimationSmooth.cpp
r284596 r284778 56 56 57 57 m_startTime = MonotonicTime::now(); 58 m_ startOffset = fromOffset;58 m_currentOffset = m_startOffset = fromOffset; 59 59 m_destinationOffset = destinationOffset.constrainedBetween(extents.minimumScrollOffset(), extents.maximumScrollOffset()); 60 60 m_duration = durationFromDistance(m_destinationOffset - m_startOffset);
Note:
See TracChangeset
for help on using the changeset viewer.