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
- Framework name: StimulusJS
- Framework version: 3.2.1
- Moveable Component version: 0.49.1
- Testable Address(optional): https://codepen.io/davidalejandroaguilar/pen/gOQmwQB
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
selecto's new version is released. Check it again
Thank you very much!