Skip to content

Anyway to disable selection by dragging? #154

Answered by danielxvu
clementrcheng asked this question in Q&A
Discussion options

You must be logged in to vote

As a workaround I ended up clearing the selection on the callback event.

ds.subscribe('callback', ({ isDragging }) => {
    if (!isDragging) {
        ds.clearSelection();
    }
});

I believe that the request is to "turn the selection off completely and only use the drag and drop" as you put it, @ThibaultJanBeyer. (Or rather that only one selection can be active at a time.)

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@danielxvu
Comment options

Answer selected by ThibaultJanBeyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants