Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ff1a1f1d1cba8a030630cc6808c6fa1277677e62
      
https://github.com/WebKit/WebKit/commit/ff1a1f1d1cba8a030630cc6808c6fa1277677e62
  Author: Richard Robinson <[email protected]>
  Date:   2026-09-18 (Fri, 18 Sep 2026)

  Changed paths:
    M Source/WebKit/Modules/Internal/module.modulemap
    M Source/WebKit/PlatformCocoa.cmake
    M Source/WebKit/UIProcess/mac/AppKitGestures/WKAppKitGestureController.mm
    M 
Source/WebKit/UIProcess/mac/AppKitGestures/WKMouseTrackingGestureRecognizer.h
    A Source/WebKit/UIProcess/mac/AppKitGestures/WKPressGestureRecognizer.h
    A Source/WebKit/UIProcess/mac/AppKitGestures/WKPressGestureRecognizer.swift
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj

  Log Message:
  -----------
  [AppKit Gestures] Drag-and-drop sometimes doesn't work
https://bugs.webkit.org/show_bug.cgi?id=324573
rdar://187746422

Reviewed by Aditya Keerthi.

Add a `WKPressGestureRecognizer` type that overrides the requirement of 
`NSPressGestureRecognizer`
which makes every press gesture require failure of any press gesture with a 
longer minimumPressDuration.

No new tests since existing tests cover this issue.

* Source/WebKit/Modules/Internal/module.modulemap:
* Source/WebKit/PlatformCocoa.cmake:
* Source/WebKit/UIProcess/mac/AppKitGestures/WKAppKitGestureController.mm:
(-[WKAppKitGestureController setUpSingleClickGestureRecognizer]):
(-[WKAppKitGestureController setUpSecondaryClickGestureRecognizer]):
(-[WKAppKitGestureController setUpDragPressGestureRecognizer]):
(-[WKAppKitGestureController setUpImageAnalysisGestureRecognizer]):
* Source/WebKit/UIProcess/mac/AppKitGestures/WKMouseTrackingGestureRecognizer.h:
* Source/WebKit/UIProcess/mac/AppKitGestures/WKPressGestureRecognizer.h: Copied 
from 
Source/WebKit/UIProcess/mac/AppKitGestures/WKMouseTrackingGestureRecognizer.h.
* Source/WebKit/UIProcess/mac/AppKitGestures/WKPressGestureRecognizer.swift: 
Added.
(WKPressGestureRecognizer.shouldRequireFailure(of:)):
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:

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



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

Reply via email to