Skip to content

How to implement long-press and drag on mobile devices #3177

@taosimple

Description

@taosimple

On mobile devices, touch swipe gestures and drag gestures conflict with each other. Therefore, I want to implement the function of triggering the drag event after a long press, similar to long-pressing an icon to drag it on the mobile phone desktop. The problem I'm encountering now is that after pressing, I activate dragging through grid.enableMove(true, currentElement);, but I have to release the touch and then press again to drag, which makes the operation discontinuous. I wonder if there's a way to achieve a more instinctive interaction like this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions