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

iOS10/Safari10: touchmove.preventDefault() not preventing browser scroll #77

Closed
reppners opened this issue Oct 16, 2016 · 4 comments
Closed

Comments

@reppners
Copy link
Collaborator

http://www.openradar.me/28479522

http://stackoverflow.com/questions/40027513/scroll-cant-be-default-prevented-on-touchmove-event-on-ios10

https://bugs.webkit.org/show_bug.cgi?id=163207

Tripped over this regression while working on new demo pages for the rewrite.

@reppners
Copy link
Collaborator Author

Seems like somebody found a workaround!

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

Credits go to metafizzy/flickity#457 (comment)

@dpogue
Copy link

dpogue commented Feb 8, 2017

In the webkit bug, it sounds like a better fix is to call preventDefault() in a touchforcechange event listener on the element, rather than adding extraneous listeners on the window.

@reppners
Copy link
Collaborator Author

reppners commented Feb 9, 2017

The reason I did not implement the touchforcechange-fix was because the event never fired on my iPhone 6 which does not have 3D Touch support. The fix simply did not work.

@reppners
Copy link
Collaborator Author

closing as a workaround is available and there is nothing else the library can do to help the issue.

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

No branches or pull requests

2 participants