Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d1974774bbd54804f9ccb00e82786183f0161c03
      
https://github.com/WebKit/WebKit/commit/d1974774bbd54804f9ccb00e82786183f0161c03
  Author: Abrar Rahman Protyasha <[email protected]>
  Date:   2026-05-16 (Sat, 16 May 2026)

  Changed paths:
    M Source/WebCore/dom/Element.cpp
    M Tools/TestWebKitAPI/Tests/WebKit/WebPage/AppKitGesturesTests.swift

  Log Message:
  -----------
  [AppKit Gestures] Only mouse tracking mode produces pointer events
https://bugs.webkit.org/show_bug.cgi?id=314880
rdar://177139516

Reviewed by Tim Horton.

A single click via the gesture controller's synthetic click flow does
not fire pointerdown/pointerup on the page -- we only see the final
click event.

We address this issue by adding an input source check on the suppression
condition in dispatchPointerEventIfNeeded, since it is currently
short circuiting away non-iOS synthetic events that do not otherwise
have a pointer event dispatch path.

Test: AppKitGesturesTests.singleClickFiresPointerMouseAndClickEvents

* Source/WebCore/dom/Element.cpp:
(WebCore::dispatchPointerEventIfNeeded):
* Tools/TestWebKitAPI/Tests/WebKit/WebPage/AppKitGesturesTests.swift:
(AppKitGesturesTests.singleClickFiresPointerMouseAndClickEvents(_:)):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to