Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 923b0c360c9544f0b150d1dfe3a92f193cc86af0
https://github.com/WebKit/WebKit/commit/923b0c360c9544f0b150d1dfe3a92f193cc86af0
Author: Lily Spiniolas <[email protected]>
Date: 2026-07-02 (Thu, 02 Jul 2026)
Changed paths:
M Source/WebKit/UIProcess/mac/WKAppKitGestureController.mm
Log Message:
-----------
REGRESSION (315351@main): [macOS] Pull to refresh and top scroll stretching
often fail to activate
https://bugs.webkit.org/show_bug.cgi?id=318442
rdar://181228601
Reviewed by Abrar Rahman Protyasha.
If the user scrolls down and then scrolls up with enough velocity to trigger top
scroll stretching, the scroll view will rubberband, and synthetic momentum
scrolling
events will fire. After doing this, if the user attempts to scroll up before the
rubberband animation has completed, `interruptMomentumIfNeeded` is called,
which sets
`_suppressNextPanScrollDelta` to true, and the scroll delta is zeroed as a
result. This
stops any top scroll stretch from occuring, and thus pull-to-refresh cannot be
triggered
either.
Fix by calling `_resetCaughtDeceleratingScroll` in
`didEndSyntheticMomentumScrolling`
which sets `_suppressNextPanScrollDelta` to false.
* Source/WebKit/UIProcess/mac/WKAppKitGestureController.mm:
(-[WKAppKitGestureController didEndSyntheticMomentumScrolling]):
Canonical link: https://commits.webkit.org/316424@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications