[Webkit-unassigned] [Bug 173830] dom change will cause jump when "container's -webkit-scroll-snap-type is mandatory" and "item's width is percent"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 24 21:13:52 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=173830

--- Comment #4 from Wenson Hsieh <wenson_hsieh at apple.com> ---
(In reply to zhouqi from comment #3)
> scroll-snap-align has this bug also in iOS 11
> 
> .container{
>     scroll-snap-type: mandatory;
> }
> .item{
>     scroll-snap-align: start center;
> }

Scroll snap offsets jumping during layout is a known issue, and one that's tricky to fix. What's probably happening is that code to restore the active snap index (e.g. to keep the active scroll snap point the same after device rotation) is triggered as a post layout task after the layout happens due to reflow, which causes the scroll offset to try and jump in the middle of a scroll snap animation.

I have some ideas about how to decouple this mechanism to restore active scroll snap index restoration from the frame layout lifecycle...

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171025/6fbe8e5a/attachment.html>


More information about the webkit-unassigned mailing list