NEW 198598
Don't fire scroll events during rubber-banding, when the observable values of scrollLeft and scrollTop are not changing
https://bugs.webkit.org/show_bug.cgi?id=198598
Summary Don't fire scroll events during rubber-banding, when the observable values of...
Simon Fraser (smfr)
Reported 2019-06-05 19:58:10 PDT
We should only fire scroll events when the observable values of scrollLeft and scrollTop change.
Attachments
Radar WebKit Bug Importer
Comment 1 2019-06-05 19:58:50 PDT
Bruno Stasse
Comment 2 2021-06-07 05:05:01 PDT
Am I mistaken or do the observable values of scrollLeft and scrollTop do change during rubber-banding? When overscrolling at the top of a scroll container I get negative values for scrollTop for example (which seems like a good behaviour).
Simon Fraser (smfr)
Comment 3 2021-06-07 11:51:52 PDT
There are many websites that do the wrong thing with negative offsets (e.g. the double-translate fake-fixed elements). I don't think the negative values are web-compatible.
Bruno Stasse
Comment 4 2021-06-07 14:11:16 PDT
I'm not sure I see the problem this can cause, however... scroll values communicated during overscroll seem quite useful to me as they allow to implement animations like zooming a fixed picture or a title when overscrolling at the top of a page. Which wouldn't be possible without it. And knowing that we are overscrolling in a scroll event handler can be quite useful in other situations. It would really be too bad to lose this information. At least if both clamp and unclamped values could be available (as suggested here: https://bugs.webkit.org/show_bug.cgi?id=198597#c3) that would be nice.
Note You need to log in before you can comment on or make changes to this bug.