Skip to content

Chrome Android delay and mousemove events #981

@wytrych

Description

@wytrych

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions