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

safari ios 13.5, body is not locked

Open n19htz opened this issue 4 years ago • 4 comments

As the title says, body lock works everywhere just fine but safari on ios. How to deal with safari on ios devices? The only thing i found could work is to set additionaly body to position fixed but it breaks scroll position after.

n19htz avatar Jun 08 '20 22:06 n19htz

@n19htz i have no issues, using an iPad with iOS 13.5.1 i have tested this demo: https://fl3nkey.github.io/scroll-lock/demos/index.html#ex-main

niklasgrewe avatar Jun 22 '20 13:06 niklasgrewe

For some reasons I get page scroll locked only if there is no bottom ios natvice bottombar. If I scroll up bottom ios native bar disappears and on its place is a gap. If you try to touchscroll on this gap - the page is scrolling as usually

n19htz avatar Jun 23 '20 11:06 n19htz

@n19htz I'm currently running into the same issue. Did you manage to fix this? For others reading this I've put a video below. You can see that if you scroll in the bottom part (where the toolbar normally is) you can still scroll. This is using the body-scroll-lock library but it's the same for this one.

https://user-images.githubusercontent.com/5268113/103812549-f3101f00-505e-11eb-8c7a-d373c948348b.MOV

joostvanhoof avatar Jan 06 '21 19:01 joostvanhoof

I wonder if there are plans to fix this issue soon ... body-scroll-lock seems to have fixed this issue in the latest update (https://github.com/willmcpo/body-scroll-lock/issues/206)

alpabuz avatar Jul 13 '21 10:07 alpabuz