Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fc79a5fcc9de9b975d179b7f61f1e51adce25873
      
https://github.com/WebKit/WebKit/commit/fc79a5fcc9de9b975d179b7f61f1e51adce25873
  Author: Richard Robinson <[email protected]>
  Date:   2024-07-22 (Mon, 22 Jul 2024)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h
    M Source/WebKit/UIProcess/API/mac/WKWebViewMac.mm
    M Source/WebKit/UIProcess/mac/WebViewImpl.mm
    M Tools/TestWebKitAPI/Tests/mac/MouseEventTests.mm

  Log Message:
  -----------
  [Pointer Events] Two `mousemove` events are dispatched when the mouse enters 
a web view window instead of a single one
https://bugs.webkit.org/show_bug.cgi?id=276889
rdar://132251320

Reviewed by Abrar Rahman Protyasha and Megan Gardner.

The `mouseEntered:` and `mouseExited:` methods are called twice, one for each 
tracking area. This results in a duplicate
event being dispatched for each.

Fix by early returning in the case where these methods are called on the 
non-primary tracking area.

* Source/WebKit/UIProcess/mac/WebViewImpl.mm:
(WebKit::WebViewImpl::mouseEntered):
(WebKit::WebViewImpl::mouseExited):

Canonical link: https://commits.webkit.org/281225@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