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

  Changed paths:
    M Source/WebCore/page/EventHandler.cpp

  Log Message:
  -----------
  [AppKit Gestures] Gesture-driven text selection drag-and-drop is often ignored
https://bugs.webkit.org/show_bug.cgi?id=314887
rdar://177152499

Reviewed by Wenson Hsieh.

EventHandler::handleDrag enforces a 150ms delay between mouseDown and
mouseDrag for text selection drags to help the engine figure out between
user intent -- drag or selection extension. However, automation events
do not have this ambiguity since this is solved by the AppKit gesture
controller.

Because of this unnecessary delay, we just drop the first N mosueDragged
events and end up dropping the drag on
the floor. In this patch, we fix
this issue by skipping TextDragDelay when the input source is automation.

* Source/WebCore/page/EventHandler.cpp:
(WebCore::EventHandler::handleDrag):

Canonical link: 
https://flagged.apple.com:443/proxy?t2=DB1E8T0hN5&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzEzMzIyQG1haW4=&emid=cbbd0268-287a-4639-95d1-220539c2df0a&c=11



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

Reply via email to