Skip to content

How to start dragging only after timeout (long tap activator)? #115

Open

Description

@iamcsharper

I'm building a popup with a series of full-width slides, one for each day. Each day has a sortable list of cards.

I want to make it so that users can only start dragging and sorting the cards if they long-press on them (meaning they hold their finger down for at least one second).

How can I implement this using solid-dnd? Any suggestions or examples you can provide would be greatly appreciated!

Activity

  1. iamcsharper commented on Jul 5, 2024

    @iamcsharper
    Author

    image

  2. martinpengellyphillips commented on Jul 5, 2024

    @martinpengellyphillips
    Contributor

    So the default sensor has a delay but it is not currently customisable. Now there is a use case, I'll look at making that customisable.

    In the meantime, you'll need to copy that sensor code into a custom sensor, modify it as you need and register it instead as the sensor you want to use.

  3. serban-mihai commented on Aug 25, 2024

    @serban-mihai

    I'm also waiting for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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