Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 21e718c506bcf8bb3b91621e65c4088fcdcbe4d5
https://github.com/WebKit/WebKit/commit/21e718c506bcf8bb3b91621e65c4088fcdcbe4d5
Author: Carlos Garcia Campos <[email protected]>
Date: 2025-12-10 (Wed, 10 Dec 2025)
Changed paths:
M Source/WebKit/Shared/NativeWebTouchEvent.h
M Source/WebKit/Shared/wpe/NativeWebTouchEventWPE.cpp
M Source/WebKit/Shared/wpe/WebEventFactoryWPE.cpp
M Source/WebKit/UIProcess/API/wpe/PageClientImpl.cpp
M Source/WebKit/UIProcess/API/wpe/WPEWebViewPlatform.cpp
M Source/WebKit/UIProcess/API/wpe/WPEWebViewPlatform.h
Log Message:
-----------
[WPE] WPE Platform: synthetic clicks generated for unhandled touch events are
firing two pointer events
https://bugs.webkit.org/show_bug.cgi?id=303531
Reviewed by Adrian Perez de Castro.
There are two problems:
- We should synthesize clicks for taps only when the touch events were not
handled.
So, instead of calling handleGesture right after the touch event is
passed to the page, we now do it from PageClientImpl::doneWithTouchEvent()
when wasEventHandled is false.
- We should notify the web process that synthetic mouse events are a
simulated tap.
When creating the WebMouse Event we check if the input source is
WPE_INPUT_SOURCE_TOUCHSCREEN to pass
WebMouseEventSyntheticClickType::OneFingerTap
to the constructor.
Canonical link: https://commits.webkit.org/304226@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications