willmcpo / body-scroll-lock

Body scroll locking that just works with everything 😏
MIT License
4.04k stars 337 forks source link

Scroll freeze on touch outside element #88

Open Ninos opened 5 years ago

Ninos commented 5 years ago

Hey there, I have the same problem described in following post with ios (iphone) latest version: https://stackoverflow.com/questions/41629418/scroll-freezes-in-popup-if-area-outside-of-the-scroll-component-was-touched-on-t

After touching an outside element in the popup, the scroll is not working for ~ 3 seconds. You can test it here: https://sw22.firebaseapp.com/

Steps to reproduce

  1. Open a popup (click on a column)
  2. Touchdown the "Close popup" link and move to scrolling area
  3. Try to scroll (scroll will be possible again after 3 seconds)

I'm using your body-scroll-lock library and think this bug could also be fixed in your lib. I searched lots of times, tried out lots of solutions but don't know what's going wrong here.

PS: Without overflow-scrolling: touch all is working well.

Kindest regards

FL3NKEY commented 5 years ago

works with scroll-lock.

https://codepen.io/FL3NKEY/full/LqOvGN https://github.com/FL3NKEY/scroll-lock