Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 429b367373dc6d2c23a14d24978e02586c69800b
https://github.com/WebKit/WebKit/commit/429b367373dc6d2c23a14d24978e02586c69800b
Author: Abrar Rahman Protyasha <[email protected]>
Date: 2026-09-15 (Tue, 15 Sep 2026)
Changed paths:
M Source/WebKit/UIProcess/mac/AppKitGestures/WKAppKitGestureController.mm
M Tools/TestWebKitAPI/Tests/WebKit/WebPage/AppKit Gesture
Tests/BasicAppKitGesturesTests.swift
Log Message:
-----------
[AppKit Gestures] Scrollbars cannot be dragged when a scroll is live
https://bugs.webkit.org/show_bug.cgi?id=324227
rdar://187240881
Reviewed by Wenson Hsieh.
After 315351@main, we only let the single click and the pan gestures
recognize when a decelerating scroll is caught, since these were the
only gestures that could meaningfully do anything in this case. However,
this had the adverse effect of preventing scrollbar drags (driven by
the mouse tracking gesture) when any scroll was live/decelerating.
To fix this, we teach -gestureRecognizerShouldBegin: to also allow the
mouse tracking gesture to recognize - when catching a decelerating
scroll - if the mouse was over a scrollbar. Like the other gestures that
have this privilege, the mouse tracking gesture is now also taught to
call into -_resetCaughtDeceleratingScroll as appropriate.
Test: AppKitGesturesTests.Basic/scrollbarCanBeDraggedDuringScrollDeceleration
Canonical link: https://commits.webkit.org/321178@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications