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

Page Scrolls Vertically While Swiping (iOS Mobile Browsers) #813

Closed
mattrothenberg opened this issue Aug 17, 2018 · 5 comments
Closed

Page Scrolls Vertically While Swiping (iOS Mobile Browsers) #813

mattrothenberg opened this issue Aug 17, 2018 · 5 comments

Comments

@mattrothenberg
Copy link

Howdy! First and foremost, thanks for creating + maintaining such a great library.

Test case: https://codepen.io/mattrothenberg/pen/qyeyLX
Production: https://alisonunderwood.com/collage/concealed-objects

I'm running into an issue where, on my iPhone 8+ (running the latest version of both Safari + Chrome), I'm able to pan the page vertically while I'm in the process of swiping through a single slider. This can be frustrating, as I don't want the page to move up and down while I browse through a beautiful gallery of images.

I've read through previous issues and discovered fixes such as adding this noop event handler, but I'm not having any success there. I could very well be doing something wrong 😭.

window.addEventListener( 'touchmove', function() {})

Might there be any other tricks I can use to prevent the page from scrolling vertically while someone is swiping through a gallery?

Thank you!

@desandro
Copy link
Member

Thanks for reporting this issue. See discussion #740. Hopefully this is resolved in iOS 12

@mattrothenberg
Copy link
Author

Thank you for the prompt reply! ❤️

@lougreenwood
Copy link

I have this issue in iOS 12 :(

@DzmitrySiver
Copy link

Reproducing this on iOS12.

@desandro
Copy link
Member

Lets keep discussion in #740. Locking this issue.

@metafizzy metafizzy locked as resolved and limited conversation to collaborators Jun 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

4 participants