WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
200869
Multiple scroll events during one requestAnimationFrame cycle
https://bugs.webkit.org/show_bug.cgi?id=200869
Summary
Multiple scroll events during one requestAnimationFrame cycle
alex
Reported
2019-08-18 09:46:23 PDT
Safari dispatches multiple scroll events during one requestAnimationFrame "cycle". But the scroll event should be limited to the rAF. Steps to reproduce: 1. open page: Demo:
https://jsbin.com/joculitacu/edit?console,output
2. Scroll the page What you see: You see multiple outputs `bug.` inside of the console. What I expect: No output. To me it is not entirely clear wether this is a bug with the scroll event or the rAF.
Attachments
Test
(5.83 KB, text/html)
2021-10-15 16:30 PDT
,
Simon Fraser (smfr)
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-08-18 11:36:32 PDT
<
rdar://problem/54446269
>
alex
Comment 2
2019-08-19 01:30:34 PDT
Here you find an updated testcase:
https://jsbin.com/wiyehev/edit?console,output
The old one said "success." although it is a bug. Having multiple scroll events in one render cycle can lead to performance problems and layout thrashing. Additionally it is not standard complaint. This bug only occurs in Safari not in Chrome, FF or Edge.
Simon Fraser (smfr)
Comment 3
2021-10-15 16:30:05 PDT
I suspect this only happens in cross-origin iframes where rAF is throttled to 30fps. Does it happen in the main frame? Attaching your testcase as an HTML file.
Simon Fraser (smfr)
Comment 4
2021-10-15 16:30:16 PDT
Created
attachment 441451
[details]
Test
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