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

Chrome Android delay and mousemove events #981

Closed
wytrych opened this issue Oct 20, 2016 · 0 comments
Closed

Chrome Android delay and mousemove events #981

wytrych opened this issue Oct 20, 2016 · 0 comments

Comments

@wytrych
Copy link

wytrych commented Oct 20, 2016

There is an issue with dragging when the delay property is set on Chrome Android. What happens is that the mousemove event, which cancels the drag https://github.com/RubaXa/Sortable/blob/f4f1ad395bfdacdb71f1e4b54a39a5791d5feb86/Sortable.js#L437 always seems to fire on Chrome Android, (see https://bugs.chromium.org/p/chromium/issues/detail?id=119216), even if I keep my finger really still. It doesn't trigger the touchmove event, because if I comment out that line with mousemove it works perfectly fine.

So the bottom line is: Dragging never starts on Chrome Android if the delay property is set to anything greater than 0

Not sure if there can be a good solution for this, other than removing the mousemove line which IMO isn't really required since it is not standard behaviour to press the mouse button and then move it around a lot, but maybe I'm wrong. I have been experimenting a little bit how to fix this issue, but all other solutions have unwanted side effects. Any ideas?

wytrych added a commit to wytrych/Sortable that referenced this issue Oct 20, 2016
When using drag delay, the event is cancelled on a series of events, including `mousemove` which seems to be always fired on Chrome Android, even in cases when `touchmove` doesn't fire. This cause the drag to never commence when using the delay property. See SortableJS#981
@owen-m1 owen-m1 closed this as completed Dec 28, 2018
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

No branches or pull requests

2 participants