You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a problem in my project.
I need to select multi items that can be drag and drop to somewhere.but when I try to drag the selected items, selecto will reselect the item which I clicked at and remove the others.
How can I prevent the select event when I start drag inside a selected item, and select the item when just click?
Hope for reply!
The text was updated successfully, but these errors were encountered:
I used preventClickEventOnDrag=true and selectFromInside =true, but still not work for me.
I used a very complicated method to sovle this:
In the onDrag event,determine whether the mouse is on the selected item.
If on:
in onMousemove event, I can know the mouse move distance,
if distance>=4 : It will trigger the default drag event and no select drag event happen.
if distance<4: It means it is a click event, I use setSelectedTargetsByPoints() to select the item by manual.
Environments
Description
Hi, I have a problem in my project.
I need to select multi items that can be drag and drop to somewhere.but when I try to drag the selected items, selecto will reselect the item which I clicked at and remove the others.
How can I prevent the select event when I start drag inside a selected item, and select the item when just click?
Hope for reply!
The text was updated successfully, but these errors were encountered: