Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f0af1daa9de5f0fd5f83815a89c5c585478c68b0
https://github.com/WebKit/WebKit/commit/f0af1daa9de5f0fd5f83815a89c5c585478c68b0
Author: Vitaly Dyachkov <[email protected]>
Date: 2026-02-26 (Thu, 26 Feb 2026)
Changed paths:
M Source/WebKit/UIProcess/API/wpe/WPEWebViewPlatform.cpp
M Source/WebKit/WPEPlatform/wpe/WPEGestureController.cpp
M Source/WebKit/WPEPlatform/wpe/WPEGestureController.h
M Source/WebKit/WPEPlatform/wpe/WPEGestureControllerImpl.cpp
M Source/WebKit/WPEPlatform/wpe/WPEGestureDetector.cpp
M Source/WebKit/WPEPlatform/wpe/WPEGestureDetector.h
Log Message:
-----------
[WPEPlatform] Page scrolls at double speed when scrolling with two fingers
https://bugs.webkit.org/show_bug.cgi?id=308643
Reviewed by Carlos Garcia Campos.
When scrolling begins with one finger and a second finger is placed on
the screen and both fingers move together, the page scrolls at twice the
expected speed.
`WPEGestureDetector` only tracks the first touch sequence and ignores
events from other sequences. However, `handleGesture()` did not check
whether the event was actually processed and always proceeded to emit a
scroll event based on the current gesture state. As a result, touch move
events from the second finger triggered a second scroll event, doubling
the scroll speed.
Fixed by making `wpe_gesture_controller_handle_event()` return a boolean
indicating whether the event was consumed.
* Source/WebKit/UIProcess/API/wpe/WPEWebViewPlatform.cpp:
(WKWPE::ViewPlatform::handleGesture):
* Source/WebKit/WPEPlatform/wpe/WPEGestureController.cpp:
(wpe_gesture_controller_handle_event):
* Source/WebKit/WPEPlatform/wpe/WPEGestureController.h:
* Source/WebKit/WPEPlatform/wpe/WPEGestureControllerImpl.cpp:
(wpeHandleEvent):
* Source/WebKit/WPEPlatform/wpe/WPEGestureDetector.cpp:
(WPE::GestureDetector::handleEvent):
* Source/WebKit/WPEPlatform/wpe/WPEGestureDetector.h:
Canonical link: https://commits.webkit.org/308271@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications