body-scroll-lock
body-scroll-lock copied to clipboard
Doesn't work fine for 'iphone x'
For see this problem you need:
- Get Iphone X, open https://bodyscrolllock.now.sh/
- Little scroll page to top, for hide bottom panel with navigation buttons
- Slick 'disable body scroll'
- Swipe page in the same place, where was bottom panel with nav buttons
- As you can see, page still scrolled
You mean it doesn't stay at the same place when you force Safari to show its bars?
No, I mean, when you hide Safari bottom bar and touch and swipe on that place (where was bar), you can scroll page.
Can't reproduce on iOS 13. It only covers some content that was visible when the bars were hidden.
I ran into this problem.
This is only happening on Safari. Because when you swipe from the bottom, it calling the bottom bar out. (On fast swiping, the body will scroll) Bad iOS behaviors!
Just managed to trigger scroll in both directions when double tapping the top/bottom of the viewport (not by dragging the page up and down like you'd usually do to scroll). This was on the latest iOS 13 beta.
This is an old article concerning the "special" status of page areas where the menu bars sit: https://benfrain.com/the-ios-safari-menu-bar-is-hostile-to-web-apps-discuss/