Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 45f6219e113d8baf7ecdfabe567f80c0efed8c0c
https://github.com/WebKit/WebKit/commit/45f6219e113d8baf7ecdfabe567f80c0efed8c0c
Author: Kate Lee <[email protected]>
Date: 2026-04-08 (Wed, 08 Apr 2026)
Changed paths:
M Source/WebCore/page/EventHandler.cpp
Log Message:
-----------
[WPE][GTK] preventDefault() on pointerdown does not suppress gesture-based
compatibility mouse events from touch.
https://bugs.webkit.org/show_bug.cgi?id=311544
Reviewed by Carlos Garcia Campos.
After dispatching pointer events via dispatchEventForTouchAtIndex() in
EventHandler::handleTouchEvent(), check
preventsCompatibilityMouseEventsForIdentifier()
for the touch pointer ID. If it returns true (meaning pointerdown was
cancelled),
set swallowedEvent=true so that wasEventHandled=true propagates to the
UIProcess,
preventing gesture-based mouse synthesis.
* Source/WebCore/page/EventHandler.cpp:
(WebCore::EventHandler::handleTouchEvent):
Canonical link: https://commits.webkit.org/310827@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications