Skip to content
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

Closed
tonimichel opened this issue Feb 10, 2019 · 7 comments
Closed

Disable body scrolling when swiping images on mobile #211

tonimichel opened this issue Feb 10, 2019 · 7 comments

Comments

@tonimichel
Copy link

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.

@ghost
Copy link

ghost commented Apr 16, 2019

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).

@ketonik
Copy link

ketonik commented May 19, 2019

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.

@ketonik
Copy link

ketonik commented May 28, 2019

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
left half of image image back <
right half of image go forward >

@feimosi
Copy link
Owner

feimosi commented Jun 16, 2019

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.

@feimosi
Copy link
Owner

feimosi commented Mar 31, 2020

Please let me know if the issue still exists on v1.11.1

@ghost
Copy link

ghost commented Mar 31, 2020

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)

@feimosi
Copy link
Owner

feimosi commented Mar 31, 2020

Great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants