body-scroll-lock icon indicating copy to clipboard operation
body-scroll-lock copied to clipboard

Doesn't work fine for 'iphone x'

Open alexanderLanars opened this issue 6 years ago • 6 comments

For see this problem you need:

  1. Get Iphone X, open https://bodyscrolllock.now.sh/
  2. Little scroll page to top, for hide bottom panel with navigation buttons
  3. Slick 'disable body scroll'
  4. Swipe page in the same place, where was bottom panel with nav buttons
  5. As you can see, page still scrolled

alexanderLanars avatar Aug 08 '19 07:08 alexanderLanars

You mean it doesn't stay at the same place when you force Safari to show its bars?

hacknug avatar Aug 08 '19 11:08 hacknug

No, I mean, when you hide Safari bottom bar and touch and swipe on that place (where was bar), you can scroll page.

alexanderLanars avatar Aug 08 '19 11:08 alexanderLanars

Can't reproduce on iOS 13. It only covers some content that was visible when the bars were hidden.

hacknug avatar Aug 08 '19 12:08 hacknug

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!

KayLeung avatar Aug 09 '19 13:08 KayLeung

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.

hacknug avatar Aug 09 '19 14:08 hacknug

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/

diachedelic avatar Aug 09 '19 22:08 diachedelic