Scrolllock don't unlock touch on chrome mobile
See original GitHub issueSteps to reproduce the behavior:
I have two pages on system, PageOne
and PageTwo
. I use the react-router to route between URLs.
I use Lightbox on the Page Two when user clicks on an image. So, after open Lightbox, just click on previous button
of chrome mobile browser and return to PageOne, but the scroll don’t work more using touch.
Looking the Lightbox source I found the ScrollLock component that is responsible for “Lock the body” while Lightbox is open. When unmount ScrollLock component it unlocks the body html tag to scroll normally.
Using the X close icon, everything goes fine, but using the back button of android device while the Lightbox is open, not.
Expected behavior:
Scrollbar working using touch after click on back button.
Actual behavior:
Scrollbar don’t work using touch.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:9 (3 by maintainers)
Top GitHub Comments
Having the same issue on chrome browser. Have you guys figured out a workaround?
I can confirm. Chrome browser same issues