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

Changeset 287794 in webkit


Ignore:
Timestamp:
Jan 7, 2022, 3:47:41 PM (5 years ago)
Author:
Chris Lord
Message:

[GTK] REGRESSION: Kinetic scrolling via touch-screen behaves oddly
https://bugs.webkit.org/show_bug.cgi?id=234958

Reviewed by Michael Catanzaro.

The swipe signal handler didn't take into account
Scrollbar::pixelsPerLineStep() and also incorrectly negated the
vertical velocity. Ideally, touch scrolling would use precise wheel
events, but as the rest of the code works correctly and scales by this
amount, make the one-line change that conforms with the previous code.

  • UIProcess/API/gtk/WebKitWebViewBase.cpp:

(webkitWebViewBaseTouchSwipe):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r287786 r287794  
     12022-01-07  Chris Lord  <clord@igalia.com>
     2
     3        [GTK] REGRESSION: Kinetic scrolling via touch-screen behaves oddly
     4        https://bugs.webkit.org/show_bug.cgi?id=234958
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        The swipe signal handler didn't take into account
     9        Scrollbar::pixelsPerLineStep() and also incorrectly negated the
     10        vertical velocity. Ideally, touch scrolling would use precise wheel
     11        events, but as the rest of the code works correctly and scales by this
     12        amount, make the one-line change that conforms with the previous code.
     13
     14        * UIProcess/API/gtk/WebKitWebViewBase.cpp:
     15        (webkitWebViewBaseTouchSwipe):
     16
    1172022-01-07  Patrick Angle  <pangle@apple.com>
    218
  • trunk/Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp

    r282952 r287794  
    20022002        }
    20032003
    2004         webkitWebViewBaseSynthesizeWheelEvent(webViewBase, event, -velocityX, -velocityY, x, y, WheelEventPhase::NoPhase, WheelEventPhase::Began);
     2004        webkitWebViewBaseSynthesizeWheelEvent(webViewBase, event, -velocityX / Scrollbar::pixelsPerLineStep(), velocityY / Scrollbar::pixelsPerLineStep(), x, y, WheelEventPhase::NoPhase, WheelEventPhase::Began);
    20052005    }
    20062006}
Note: See TracChangeset for help on using the changeset viewer.