Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4b277b0be35d350074638b24b4d70ecc2c30fb45
      
https://github.com/WebKit/WebKit/commit/4b277b0be35d350074638b24b4d70ecc2c30fb45
  Author: Tim Horton <[email protected]>
  Date:   2026-03-05 (Thu, 05 Mar 2026)

  Changed paths:
    M Source/WebKit/UIProcess/ViewGestureController.h
    M Source/WebKit/UIProcess/mac/PageClientImplMac.mm
    M Source/WebKit/UIProcess/mac/ViewGestureControllerMac.mm
    M Source/WebKit/UIProcess/mac/WKAppKitGestureController.mm
    M Source/WebKit/UIProcess/mac/WebViewImpl.mm

  Log Message:
  -----------
  Move ViewGestureControllerMac from using NSEvent directly to 
NativeWebWheelEvent
https://bugs.webkit.org/show_bug.cgi?id=309213
rdar://171767886

Reviewed by Abrar Rahman Protyasha.

Do some simple refactoring to pass NativeWebWheelEvent into 
ViewGestureController
instead of NSEvent, so that we can later make it possible to start a swipe
from a synthesized scroll event.

* Source/WebKit/UIProcess/ViewGestureController.h:
* Source/WebKit/UIProcess/mac/PageClientImplMac.mm:
(WebKit::PageClientImpl::wheelEventWasNotHandledByWebCore):
* Source/WebKit/UIProcess/mac/ViewGestureControllerMac.mm:
(WebKit::ViewGestureController::PendingSwipeTracker::scrollEventCanStartSwipe):
(WebKit::ViewGestureController::PendingSwipeTracker::scrollEventCanEndSwipe):
(WebKit::ViewGestureController::PendingSwipeTracker::scrollEventCanInfluenceSwipe):
(WebKit::ViewGestureController::PendingSwipeTracker::scrollEventGetScrollingDeltas):
(WebKit::ViewGestureController::handleScrollWheelEvent):
(WebKit::ViewGestureController::trackSwipeGesture):
* Source/WebKit/UIProcess/mac/WKAppKitGestureController.mm:
(-[WKAppKitGestureController panGestureRecognized:]):
(-[WKAppKitGestureController sendWheelEventForGesture:]):
* Source/WebKit/UIProcess/mac/WebViewImpl.mm:
(WebKit::WebViewImpl::tryToSwipeWithEvent):
(WebKit::WebViewImpl::scrollWheel):

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



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

Reply via email to