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

Issue with object sticking to the cursor in group selection

vladdubchak opened this issue · comments

Environments

  • Framework name: React
  • Framework version: 18.2
  • Component name: Selecto
  • Component version: 1.22.0
  • Testable Address(optional):

Description

Hello there!

I am trying to implement a possibility for the user in my app to group several elements. Upon grouping, the user might need to move one of the objects inside the group. Usually, in graphic editors, it works in the way that user needs to double-click on the element inside the group to select it.

The issue is that upon double-clicking, the object sticks to the cursor and starts moving with it, until user hits left mouse button again. Is there a way to avoid this need to detach an element from the cursor?

group.selection.mov

In Figma, for example, you simply need to double click on the element in the group, and you can seamlessly move it around the canvas. Any chance this could be fixed, pretty please?

Thanks a mil!

@vladdubchak

Click occurs when mouseup (double click), (sub-select)

�I will add an event that occurs when mouse down (double) is moveable.

Thanks @daybrush , looking forward!