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

disableScrollLock is not working

Open rvetere opened this issue 6 years ago • 1 comments

cool package - only downside, it's not working -.-

check out your own demo page here:

https://bodyscrolllock.now.sh/

enable scroll lock -> works 👍

disable scroll lock -> body won't get a scrollbar anymore and thus we cannot scroll the body anymore.... would be nice to have this working.

interesing - on current iOS it is working, but the momentum scroll is broken in the target element.... i guess i'll go with the solution to save my current scrollPosition before entering my lightbox, achieving the scrollLock by "position:fixed" and just before exiting it, set back to the saved scroll position... seems MUCH easier and much more lightweight and kinda unbreakable...

rvetere avatar Apr 12 '19 11:04 rvetere

#104 fixed this for me

phelma avatar Apr 17 '19 15:04 phelma