daybrush / selecto

Selecto.js is a component that allows you to select elements in the drag area using the mouse or touch.

Home Page:https://daybrush.com/selecto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clicking a single item to deselect items makes the clicked item follow the cursor until clicked again (sticky element)

davidalejandroaguilar opened this issue · comments

Environments

Description

When clicking a single item of selected items, the element sticks to the cursor and follows the mouse around until you click again.

The expected behavior is that the single click on one of the selected items, selects one item and the item doesn't automatically follow the cursor.

This happens in every example in the Moveable and Selecto storybooks too. Example here.

Screen.Recording.2023-06-27.at.11.39.20.p.m.mov

If you change selectFromInside to true, the issue is fixed, but now you can't click and drag a single item, you have to click and drag to select:

Screen.Recording.2023-06-28.at.12.02.11.a.m.mov

@davidalejandroaguilar

selecto's new version is released. Check it again

Thank you very much!