Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 28387ea7e59d02f7b53de979ac8883bd43652af4
      
https://github.com/WebKit/WebKit/commit/28387ea7e59d02f7b53de979ac8883bd43652af4
  Author: Fujii Hironori <[email protected]>
  Date:   2025-10-07 (Tue, 07 Oct 2025)

  Changed paths:
    M Source/WebKit/Shared/gtk/NativeWebMouseEventGtk.cpp
    M Source/WebKit/Shared/gtk/WebEventFactory.cpp
    M Source/WebKit/Shared/gtk/WebEventFactory.h

  Log Message:
  -----------
  [GTK] Changing the docked inspector window width and height with mouse 
dragging causes jittering
https://bugs.webkit.org/show_bug.cgi?id=258928

Reviewed by Carlos Garcia Campos.

In the docked inspector window, screenX and screenY of MouseEvent were relative
to the window. They should be relative to the root window.

Use gdk_event_get_root_coords to get the position of a mouse event.

* Source/WebKit/Shared/gtk/NativeWebMouseEventGtk.cpp:
(WebKit::NativeWebMouseEvent::NativeWebMouseEvent):
* Source/WebKit/Shared/gtk/WebEventFactory.cpp:
(WebKit::WebEventFactory::createWebMouseEvent):
* Source/WebKit/Shared/gtk/WebEventFactory.h:

Canonical link: https://commits.webkit.org/301119@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to