-
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
on mobile phone, using options.delay,sortable is no work. #1517
Comments
@coloz What device are you using to test? |
Samsung S9(android 9.0) and Huawei X7(android 8.0) Tested results show that pointermove has an impact.
After I set options.supportPointer as flase, Sortable is all right. but,the option is not shown in readme |
I got a similar issue. My config : forceFallback: true,
fallbackOnBody: true,
animation: 150,
delay: 400,
filter: '.static',
preventOnFilter: false,
ghostClass: 'ghost',
fallbackClass: 'chosen',
chosenClass: 'chosen',
scrollSpeed: 20, |
I really need to have this bug fixed! Anyone have any leads? :) |
@clemishow can you post the html code (ideally minimal reproduction) that makes this issue happen? I don't think this library is using pointerevents correctly. |
If I use: |
@NavidZ I know it is caused by Sortable.js#L633, when it is commented out it works fine. I tested on Chrome for Android and it is firing a pointermove event when the touch is started. If I comment it out and listen only for touchmove, there is no touchmove event fired. |
That is expected. I mean getting the
Note that the slop region size is not defined anywhere in the specification and is browser specific. In Chromium on Android it is circle with radius of ~15px or so. When the pointer moves beyond the slop region it might trigger some browser behavior such as scrolling if the proper touch-action is not set (or some other conditions) and in that case you would get a |
@NavidZ Thanks for clarifying that. Sortable has it's own "slop" detection using the @clemishow @coloz Please let me know if the issue is fixed on your end if you build the latest |
@owen-m1 The issue still exists. |
@coloz You ran |
@owen-m1 The latest version has fixed the issue |
Great. It's also worth mentioning here that IOS has native drag and drop as well in Safari, so that should be fixed in e5b2396. |
Problem:
on mobile phone, after using options.delay, sortable is no work.
I have tested 1.9.0 and the latest git version.
The text was updated successfully, but these errors were encountered: