| Summary: | Scrolling must be done after the layout when doing full page zoom | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tomoki Imai <tomoki.imai> | ||||||||||
| Component: | Scrolling | Assignee: | Tomoki Imai <tomoki.imai> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | don.olmstead, simon.fraser, stephan.szabo, tomoki.imai, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | All | ||||||||||||
| OS: | All | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Tomoki Imai
2021-05-12 20:29:38 PDT
Created attachment 428451 [details]
Patch
Patch to change the scrolling timing to the after layout.
When you say "Zoom in", how are you zooming? When I scroll to the bottom on http://www.rakuten.co.jp/, then pinch-zoom to zoom in the scroll position stays in the correct place. Maybe there's a different issue on Windows? Created attachment 428453 [details]
Patch
Rebased on the trunk
(In reply to Simon Fraser (smfr) from comment #2) > When you say "Zoom in", how are you zooming? In Safari, we tried "View" -> "Zoom In" in the menu bar which changes "ZoomFactor". (I'll post a video later) (In reply to Simon Fraser (smfr) from comment #3) > When I scroll to the bottom on http://www.rakuten.co.jp/, then pinch-zoom to > zoom in the scroll position stays in the correct place. > > Maybe there's a different issue on Windows? I didn't try the pinch-zoom, but I guess it changes the "ScaleFactor" not "ZoomFactor". The updating scrolling position code is shared among the ports, so I believe it's not only for Windows/GTK. OK, I do see a flash of incorrect scroll position when zooming with Command-+ after scrolling down (it jumps up, then back down again). Created attachment 428457 [details]
Reproduction in Safari 13.1
This video shows what's happened in Safari 13.1.
(Sorry for using the old Safari...)
00:00 At first, the zoom factor is the default value (probably 1). We don't see the cart icon.
00:09 Select "Zoom In", and we now see the cart icon (which we don't see in Chrome/Firefox).
01:12 Even after selecting "Zoom Out" to make the zoom factor the original value, it doesn't retain the original scroll position.
(In reply to Simon Fraser (smfr) from comment #6) > OK, I do see a flash of incorrect scroll position when zooming with > Command-+ after scrolling down (it jumps up, then back down again). Thanks for trying! Yes, Command-+ also should reproduce the issue because it's a shortcut for "View" -> "Zoom In". Created attachment 428465 [details]
Patch
Fixed LayoutTest expected result (Added newlines).
Committed r277775 (237936@main): <https://commits.webkit.org/237936@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 428465 [details]. Thank you for your review! |