WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
260934
Element#scroll() breaks rendering while inertial scroll happens
https://bugs.webkit.org/show_bug.cgi?id=260934
Summary
Element#scroll() breaks rendering while inertial scroll happens
Tomas Roggero
Reported
2023-08-30 17:03:15 PDT
Steps to reproduce: 1. Open
https://jsbin.com/wekikog
in Safari iOS 16 2. Scroll with your finger fast (so inertial scrolling of the div happens) 3. While inertial scrolling is slowing down, press the SCROLL(500) button. This button calls `element.scroll(0, 500)` where `element` is the scrollable DIV. Current behavior: The entire scrollable DIV scrolls to the proper Y position but becomes WHITE. Expected behavior: The scrollable DIV should not become WHITE. NOTES: 1) This seems to only happen at certain speeds, if the inertial scrolling is going slow enough, rendering doesn't break. 2) This is reproducible in both the Xcode Simulator as well as physical devices 3) Calling `element.scroll(0, 500)` after inertial finished works as expected
Attachments
Add attachment
proposed patch, testcase, etc.
Tomas Roggero
Comment 1
2023-08-30 17:10:00 PDT
`scroller.scroll({left: 0, top: 500, behavior:'instant'})` has the bug `scroller.scroll({left: 0, top: 500, behavior:'smooth'})` works as expected Definitely something there.
Radar WebKit Bug Importer
Comment 2
2023-08-30 18:17:13 PDT
<
rdar://problem/114735570
>
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