Changeset 228368 in webkit


Ignore:
Timestamp:
Feb 11, 2018 12:09:57 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Scrolling sometimes jumps around
https://bugs.webkit.org/show_bug.cgi?id=178519

Patch by Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> on 2018-02-11
Reviewed by Michael Catanzaro.

  • platform/gtk/ScrollAnimatorGtk.cpp:

(WebCore::ScrollAnimatorGtk::computeVelocity): use -1 as the multiplier for the accumulated deltas,
since all we need is to make them negative. Multiplying by -1000 leads to very high velocities being
returned, causing the viewport to scroll to the end of the page.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r228367 r228368  
     12018-02-11  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
     2
     3        [GTK] Scrolling sometimes jumps around
     4        https://bugs.webkit.org/show_bug.cgi?id=178519
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        * platform/gtk/ScrollAnimatorGtk.cpp:
     9        (WebCore::ScrollAnimatorGtk::computeVelocity): use -1 as the multiplier for the accumulated deltas,
     10        since all we need is to make them negative. Multiplying by -1000 leads to very high velocities being
     11        returned, causing the viewport to scroll to the end of the page.
     12
    1132018-02-10  Wenson Hsieh  <wenson_hsieh@apple.com>
    214
  • trunk/Source/WebCore/platform/gtk/ScrollAnimatorGtk.cpp

    r224260 r228368  
    123123    m_scrollHistory.clear();
    124124
    125     return FloatPoint(accumDelta.x() * -1000 / (last - first).value(), accumDelta.y() * -1000 / (last - first).value());
     125    return FloatPoint(accumDelta.x() * -1 / (last - first).value(), accumDelta.y() * -1 / (last - first).value());
    126126}
    127127
Note: See TracChangeset for help on using the changeset viewer.