WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
281300
passive:false wheel event listener and overscroll-behavior: contain prevent scrolling
https://bugs.webkit.org/show_bug.cgi?id=281300
Summary
passive:false wheel event listener and overscroll-behavior: contain prevent s...
Clément Roche
Reported
2024-10-11 06:17:50 PDT
While using a passive "wheel" event listener "window.addEventListener('wheel',()=>{},{passive:false})" and "overscroll-behavior: contain" on html element, it fully blocks the scrolling. Apparently "overscroll-behavior-y: contain" works using a trackpad but not using a mouse. It seems to happen on all Safari versions, I tested by myself on Safari 17.2.1 and Safari 18.0.1. Here is a minimal reproduction link:
https://codepen.io/ClementRoche/pen/WNVRQXG
Attachments
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2024-10-11 09:45:05 PDT
`{passive:false}` would be an active listener, not a passive one.
Radar WebKit Bug Importer
Comment 2
2024-10-11 09:45:37 PDT
<
rdar://problem/137757208
>
Clément Roche
Comment 3
2024-10-11 09:48:41 PDT
You're right, double negation got me, I've edited the title.
Simon Fraser (smfr)
Comment 4
2025-01-07 17:24:26 PST
This is caused by the early return in EventHandler::handleWheelEventInternal(): if (view->shouldBlockScrollPropagation(filteredDelta)) return true;
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug