| Summary: | REGRESSION(r279564): [GTK] Mouse wheel scrolling scrolls too little (take two) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> | ||||
| Component: | WebKitGTK | Assignee: | Michael Catanzaro <mcatanzaro> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | aperez, bugs-noreply, clord, mcatanzaro, mrobinson | ||||
| Priority: | P2 | ||||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=224302 https://bugs.webkit.org/show_bug.cgi?id=227478 |
||||||
| Attachments: |
|
||||||
|
Description
Michael Catanzaro
2021-07-28 16:13:34 PDT
I'm almost done bisecting and it looks like the bad commit is probably r279564 "[css-scroll-snap] Triggering a layout during scroll causes jittery scrolling on Mac when dragging the scrollbar." Hi Martin, do you have time to take a look? Yeah, I can take a look at this tomorrow or Monday. Thanks for the bisection. This problem shows up when you scroll rapidly with scroll wheel and with smooth scrolling turned on. The issue here seems to be that when ScrollAnimator handles a wheel event, it calculates the destination based on the current position, rather than the current target position for the running animation. r279564 uncovered this issue by fixing a bug in ScrollAnimationSmooth that disregarded the requested position in favor of a bogus one, but also making the scrolling by delta relative to the current position (rather than the desired one). This effectively means that the faster you scroll, the slower WebKit scrolls. This is, to say the least, wrong. Created attachment 434617 [details]
Patch
Comment on attachment 434617 [details]
Patch
Nice test!
Committed r280515 (240147@main): <https://commits.webkit.org/240147@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 434617 [details]. |