[Webkit-unassigned] [Bug 214781] New: Inconsistent scroll behavior when using overflow:hidden on body if added to home screen

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 24 21:35:03 PDT 2020


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

            Bug ID: 214781
           Summary: Inconsistent scroll behavior when using
                    overflow:hidden on body if added to home screen
           Product: WebKit
           Version: Safari 13
          Hardware: iPhone / iPad
                OS: iOS 13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: verypublicyeah913j at mailinator.com

Adding overflow:hidden to body doesn't prevent scrolling if the page(apple-mobile-web-app-capable) is added to the home screen. It does however prevent scrolling if it's not added to the home screen.

This bug results in a terrible user experience where you might scroll in some element, and when it ends you'll start scrolling on the body even if there is nothing to scroll. And then you need to wait for the bounce animation to stop before you can scroll the other way, or else you'll just scroll the body and not the scrollable content.

How to recreate:
1. Open e.g. https://alexskra.github.io/ios-scroll-bug/ in safari and add it to the home screen.
2. Open it and scroll to the bottom.
3. Wait for the animation to stop.
4. Scroll further down.
5. The body starts to scroll. (the red body is shown)
6. Scroll up before the animation stops. (you're unable to do so as you're now scrolling the body, not the content)

It does work as expected if you just open it in safari.

-- 
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/20200725/21e8e4bb/attachment.htm>


More information about the webkit-unassigned mailing list