Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 25e43d9150adb51f5d52a9af7b59216cc5bf7ae2
https://github.com/WebKit/WebKit/commit/25e43d9150adb51f5d52a9af7b59216cc5bf7ae2
Author: Simon Fraser <[email protected]>
Date: 2026-05-29 (Fri, 29 May 2026)
Changed paths:
A
LayoutTests/fast/scrolling/mac/overscroll-behavior-with-wheel-listener-expected.txt
A
LayoutTests/fast/scrolling/mac/overscroll-behavior-with-wheel-listener-iframe-expected.txt
A
LayoutTests/fast/scrolling/mac/overscroll-behavior-with-wheel-listener-iframe.html
A
LayoutTests/fast/scrolling/mac/overscroll-behavior-with-wheel-listener.html
M Source/WebCore/page/EventHandler.cpp
Log Message:
-----------
passive:false wheel event listener and overscroll-behavior: contain prevent
scrolling
https://bugs.webkit.org/show_bug.cgi?id=281300
rdar://137757208
Reviewed by Abrar Rahman Protyasha.
In the synchronous wheel event handling code path which goes via
`EventHandler::handleWheelEventInternal()`, the `shouldBlockScrollPropagation()`
check that handles `overscroll-behavior: contain` came before the default event
handling, so broke scrolling entirely on a scroller with a non-passive event
handler
and `overscroll-behavior: contain`.
Fix by moving the `shouldBlockScrollPropagation()` check to after the default
event handling. We no longer need the `event.copyWithDeltaAndVelocity()` because
there's no `filteredDelta` to apply.
Tests: fast/scrolling/mac/overscroll-behavior-with-wheel-listener-iframe.html
fast/scrolling/mac/overscroll-behavior-with-wheel-listener.html
*
LayoutTests/fast/scrolling/mac/overscroll-behavior-with-wheel-listener-expected.txt:
Added.
*
LayoutTests/fast/scrolling/mac/overscroll-behavior-with-wheel-listener-iframe-expected.txt:
Added.
*
LayoutTests/fast/scrolling/mac/overscroll-behavior-with-wheel-listener-iframe.html:
Added.
* LayoutTests/fast/scrolling/mac/overscroll-behavior-with-wheel-listener.html:
Added.
* Source/WebCore/page/EventHandler.cpp:
(WebCore::EventHandler::handleWheelEventInternal):
Canonical link: https://commits.webkit.org/314170@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications