Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 51c47f4d82672a807e5a27449a26ec50dd3c5238
https://github.com/WebKit/WebKit/commit/51c47f4d82672a807e5a27449a26ec50dd3c5238
Author: Sebastian Krzyszkowiak <[email protected]>
Date: 2025-11-24 (Mon, 24 Nov 2025)
Changed paths:
M Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp
Log Message:
-----------
[GTK] Set the "buttons" property in synthesized mouse events correctly
https://bugs.webkit.org/show_bug.cgi?id=302936
Reviewed by Carlos Garcia Campos.
When emulating mouse activity, Press and Motion events should indicate
the held button in their "buttons" property, while Release event should
not set it anymore. This lets WebCore generate PointerEvents correctly.
While at that, use GDK constants instead of hardcoding magic numbers.
* Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp:
(webkitWebViewBaseTouchRelease):
(webkitWebViewBaseTouchDragUpdate):
(webkitWebViewBaseTouchDragEnd):
(webkitWebViewBaseSynthesizeMouseEvent): Use GDK constants.
Canonical link: https://commits.webkit.org/303501@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications