Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2bc779961bc9d265bb65e6bbd534e7f8f6371fd6
https://github.com/WebKit/WebKit/commit/2bc779961bc9d265bb65e6bbd534e7f8f6371fd6
Author: Abrar Rahman Protyasha <[email protected]>
Date: 2026-06-22 (Mon, 22 Jun 2026)
Changed paths:
M Source/WebKit/UIProcess/mac/WKAppKitGestureController.mm
Log Message:
-----------
Gesture recognizer-initiated dragging sessions need not be updated with
-[NSDraggingSession updateDragWithGesture:]
https://bugs.webkit.org/show_bug.cgi?id=317501
rdar://180071410
Reviewed by Aditya Keerthi.
-[NSDraggingSession updateDragWithGesture:] is deprecated and no longer
has any effect; a gesture-initiated dragging session is now tracked by
AppKit directly, so the explicit pump is unnecessary. This patch removes
the two call sites in -dragPressGestureRecognized:.
For the changed case, synthesized mouseDragged events are only needed
before a drag begins, to drive WebCore past the drag-initiation
threshold, and once the session exists the drag is driven by the
platform's drag callbacks instead. The ended/cancelled/failed cases drop
the trailing updateDragWithGesture: and continue to send the balancing
mouseUp.
* Source/WebKit/UIProcess/mac/WKAppKitGestureController.mm:
(-[WKAppKitGestureController
_positionInformationRequestIsValidAtLocation:withRadius:]):
(-[WKAppKitGestureController _dragPressShouldBeginAtLocation:]):
Canonical link: https://commits.webkit.org/315641@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications