NEW 234427
scrollBy(0, 0) causes scrolling when zoomed in
https://bugs.webkit.org/show_bug.cgi?id=234427
Summary scrollBy(0, 0) causes scrolling when zoomed in
Rio
Reported 2021-12-16 23:19:30 PST
When zoomed in (e.g. via the trackpad) in any web page, the `window.scrollBy` function tends to scroll up and left further than expected. This is dependent on the zoom level and exact position of the viewport. On any web page, zoom in and call `window.scrollBy(0, 0)`. Most of the time, this causes a one pixel scroll left and up (as measured by `window.scrollX` and `window.scrollY`). In some cases, it acts as expected and does not scroll at all or scrolls by an amount small enough that the `window.scrollX` value does not change. Tested on: - Safari 14.1.2 (WebKit 16611.3.10.1.6) - Safari 15.2 (WebKit 17612.3.6.1.6) - Safari Technology Preview 15.4 (WebKit 17613.1.9.2);
Attachments
Radar WebKit Bug Importer
Comment 1 2021-12-23 23:20:15 PST
Note You need to log in before you can comment on or make changes to this bug.