selecto icon indicating copy to clipboard operation
selecto copied to clipboard

Issue with object sticking to the cursor in group selection

Open vladdubchak opened this issue 2 years ago • 2 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?

https://github.com/daybrush/selecto/assets/136099930/53180e23-718a-433d-b04c-7ef5c452e200

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 avatar Sep 20 '23 16:09 vladdubchak

@vladdubchak

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

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

daybrush avatar Nov 04 '23 11:11 daybrush

Thanks @daybrush , looking forward!

vladdubchak avatar Nov 06 '23 08:11 vladdubchak