-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
iOS 10: Page scrolling not disabled anymore #973
Comments
maybe also have a look here: |
I had the same problem, it seems like it's working if you add
Maybe it just needs a default ontouchmove handler |
Hey @supercranky, looks better but not perfect - page sometimes scrolls in landscape mode. Found some other links regarding this issue: |
@supercranky Any idea why this works? Trying to figure out if there are any side effects from adding a global ontouchmove handler. |
@smathson No idea really. Something must have changed in the inner workings of the browser :) |
jQuery UI and his drag functions do work under iOS 10 (also in older versions). Maybe we can have a look where's the difference between the code of this module and jQuery UI?! |
@saschanos Which jQuery UI drag functions work in iOS 10? Doesn't look like any code deals with touch and the demo site doesn't work in iOS as far as I can tell. |
Have a look at that website: https://www.date-your-career.de/fragebogen. Click the first option multiple times until you reach the question where you can see draggable elements. These elements are working perfectly on iOS 10 and it was realized by jQuery UI and jQuery UI Touch Punch. |
Got it, so it's the Touch Punch plugin that's handling the touches. Looks like it works by handling the touch events and converting them to the corresponding mouse events. |
Try master. |
I'm having a similar issue on master in ios11 in my local project but can't replicate on any of your demos. I suspect there must be some setting i'm missing. |
Also some issues with IOS 11 scroll. |
The example @supercranky provided didn't work for me with iOS 11.3, but this did: window.addEventListener('touchmove', (e) => { |
Edit: sorry, turned out that we had an older version fixed with the |
@MChartier Thank you! You comment also helped my situation in an e-shop with various carousels! |
I noticed the global touchmove while doing performance profiling, I see the same thing that @etiennetalbot mentioned. This seems like a hack to just globally listen on touchmove.
I only use sortablejs on one component (Angular) but on every component now I see sortable touchmove in the profiler timeline. So it is running for no reason for the components which are not using sortablejs. It should only be enabled when necessary where sortablejs is used that would be ideal. |
Any updates on this? |
When trying to sort items, on Apple iOS 10 the page is scrolling - even on your example page. Is there any solution for this problem? Regards from Germany.
The text was updated successfully, but these errors were encountered: