-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable body scrolling when swiping images on mobile #211
Comments
I would appreciate this feature as well. An option to disable vertical scrolling as long as the gallery is shown. 'noScrollbars' option disables scrolling on desktop, but breaks scrolling on mobile devices. Once the gallery is opened and closed again, the scrolling behavior changes (tested on iOS safari, chrome, ff). |
Ah yes, wondering if there was a solution to disable body scrolls. It's so easy to accidentally swipe on an angle on iOS, the body scrolls and swiping stops working. Would surely appreciate a solution to resolve this ASAP. |
This swiping body movement makes image navigation very difficult on iPad. I wonder if it is possible then to tap on each half of image left side right side to navigate? Imaginary vertical line down centre of image determines left / right |
Unfortunately, I don't have access to any iOS device and I'm really busy nowadays. If anyone wants to give it a try, pull requests are welcome. |
Please let me know if the issue still exists on v1.11.1 |
I just implemented the latest version and its working perfectly. No more vertical scrolling while swiping through the gallery. (Tested on iPhone 7, iOS 13, latest Safari, Chrome and Firefox) |
Great, thanks! |
Whenever swiping images on a mobile device, the body scrolls.
It would be great if the body scrolling behaviour could be disabled – especially for iOS devices.
The text was updated successfully, but these errors were encountered: