Skip to content

Fix draggable during mobile scrolling #15

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

Merged
merged 2 commits into from
Feb 24, 2020
Merged

Fix draggable during mobile scrolling #15

merged 2 commits into from
Feb 24, 2020

Conversation

SebouChu
Copy link

On mobile devices or other touch screens, if you start interacting with an element used with jQuery-UI Draggable, the JS console throws errors like this :

Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.

To fix it, we call event.preventDefault method in simulateMouseEvent only if the current event is cancelable.

@RWAP RWAP merged commit 62a8c45 into RWAP:master Feb 24, 2020
@AAaNEIgeiDEItao
Copy link

If I have a long list of fixed heights, the sub-items in it need to be scrolled, but when I scroll with my finger, the drag event is missing, I set the "delay" property, but the scrolling still does not work

@RWAP
Copy link
Owner

RWAP commented Feb 26, 2022

It helps if you say whether this is on iOS, Android or another operating system. Is it a mobile phone or tablet?

Sample code uploaded somewhere for people to try also helps as most of the problems people now experience are down to errors in the DOM, or people actually using the original code rather than this version of the fork.

It is hard to know what is going on - I only have an Android phone - no other touch screen devices and debugging touch screen events is not easy!

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

Successfully merging this pull request may close these issues.

3 participants