Changeset 228368 in webkit
- Timestamp:
- Feb 11, 2018 12:09:57 PM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r228367 r228368 1 2018-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 1 13 2018-02-10 Wenson Hsieh <wenson_hsieh@apple.com> 2 14 -
trunk/Source/WebCore/platform/gtk/ScrollAnimatorGtk.cpp
r224260 r228368 123 123 m_scrollHistory.clear(); 124 124 125 return FloatPoint(accumDelta.x() * -1 000 / (last - first).value(), accumDelta.y() * -1000/ (last - first).value());125 return FloatPoint(accumDelta.x() * -1 / (last - first).value(), accumDelta.y() * -1 / (last - first).value()); 126 126 } 127 127
Note: See TracChangeset
for help on using the changeset viewer.