Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ea13c69a37999ef6f705d61dea5d6b10afa91182
https://github.com/WebKit/WebKit/commit/ea13c69a37999ef6f705d61dea5d6b10afa91182
Author: Simon Fraser <[email protected]>
Date: 2026-04-21 (Tue, 21 Apr 2026)
Changed paths:
A
LayoutTests/fast/scrolling/scroll-anchoring/scroll-anchoring-during-rubberband-expected.txt
A
LayoutTests/fast/scrolling/scroll-anchoring/scroll-anchoring-during-rubberband.html
M Source/WebCore/page/scrolling/ScrollAnchoringController.cpp
Log Message:
-----------
[Scroll anchoring] Scroll anchoring interferes with rubberbanding on bbc.com
pages
https://bugs.webkit.org/show_bug.cgi?id=312839
rdar://175195943
Reviewed by Abrar Rahman Protyasha.
Prevent any scroll anchoring adjustments during rubberbanding, since they kill
the
rubberband animation, and the user is in control at this point.
`ScrollAnchoringController::updateBeforeLayout()` detects rubberbanding by
simply comparing the constrained and unconstrained scroll positions.
Test: fast/scrolling/scroll-anchoring/scroll-anchoring-during-rubberband.html
*
LayoutTests/fast/scrolling/scroll-anchoring/scroll-anchoring-during-rubberband-expected.txt:
Added.
*
LayoutTests/fast/scrolling/scroll-anchoring/scroll-anchoring-during-rubberband.html:
Added.
* Source/WebCore/page/scrolling/ScrollAnchoringController.cpp:
(WebCore::ScrollAnchoringController::updateBeforeLayout):
Canonical link: https://commits.webkit.org/311686@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications