⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 284778 in webkit


Ignore:
Timestamp:
Oct 25, 2021, 5:35:28 AM (5 years ago)
Author:
Chris Lord
Message:

[GTK][WPE] REGRESSION(r284596): Scrolling sometimes jumps to the top of the page during smooth mouse-wheel scrolling
https://bugs.webkit.org/show_bug.cgi?id=232229

Reviewed by Carlos Garcia Campos.

Source/WebCore:

Make sure that retargeting a smooth scroll animation before a frame
callback is called works correctly.

Test: fast/scrolling/gtk/repeated-mouse-wheel-smooth.html

  • platform/ScrollAnimationSmooth.cpp:

(WebCore::ScrollAnimationSmooth::startAnimatedScrollToDestination):

LayoutTests:

Add test to make sure that retargeted smooth scrolling doesn't jump to
the top of the page unexpectedly.

  • fast/scrolling/gtk/repeated-mouse-wheel-smooth-expected.txt: Added.
  • fast/scrolling/gtk/repeated-mouse-wheel-smooth.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r284776 r284778  
     12021-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
    1142021-10-25  Arcady Goldmints-Orlov  <agoldmints@igalia.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r284773 r284778  
     12021-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
    1162021-10-25  Ziran Sun  <zsun@igalia.com>
    217
  • trunk/Source/WebCore/platform/ScrollAnimationSmooth.cpp

    r284596 r284778  
    5656
    5757    m_startTime = MonotonicTime::now();
    58     m_startOffset = fromOffset;
     58    m_currentOffset = m_startOffset = fromOffset;
    5959    m_destinationOffset = destinationOffset.constrainedBetween(extents.minimumScrollOffset(), extents.maximumScrollOffset());
    6060    m_duration = durationFromDistance(m_destinationOffset - m_startOffset);
Note: See TracChangeset for help on using the changeset viewer.