Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e18388188f493983e58e3cbfd0dd5868ad8c9c90
https://github.com/WebKit/WebKit/commit/e18388188f493983e58e3cbfd0dd5868ad8c9c90
Author: Tim Horton <[email protected]>
Date: 2026-10-07 (Wed, 07 Oct 2026)
Changed paths:
M Source/WebKit/UIProcess/mac/AppKitGestures/WKAppKitGestureController.mm
M Source/WebKit/UIProcess/mac/AppKitGestures/WKAppKitGestureController.swift
M Tools/TestWebKitAPI/Tests/WebKit/WebPage/AppKit Gesture
Tests/BasicAppKitGesturesTests.swift
Log Message:
-----------
[AppKit Gestures] Scrolling is a bit drifty if you don't lift off the
trackpad very carefully
https://bugs.webkit.org/show_bug.cgi?id=326725
rdar://189444323
Reviewed by Abrar Rahman Protyasha.
Test: Tools/TestWebKitAPI/Tests/WebKit/WebPage/AppKit Gesture
Tests/BasicAppKitGesturesTests.swift
* Source/WebKit/UIProcess/mac/AppKitGestures/WKAppKitGestureController.mm:
(-[WKAppKitGestureController startMomentumIfNeededForGesture:]):
Adjust upwards the momentum limit to match AppKit.
* Source/WebKit/UIProcess/mac/AppKitGestures/WKAppKitGestureController.swift:
(WKPanGestureRecognizer.wk_velocity(in:)):
Expire velocity completely if there's no movement in 200ms, otherwise a strong
scroll followed by a pause and then a lift can still trigger momentum.
* Tools/TestWebKitAPI/Tests/WebKit/WebPage/AppKit Gesture
Tests/BasicAppKitGesturesTests.swift:
Canonical link: https://commits.webkit.org/323036@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications