Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with object sticking to the cursor in group selection #153

Open
vladdubchak opened this issue Sep 20, 2023 · 2 comments
Open

Issue with object sticking to the cursor in group selection #153

vladdubchak opened this issue Sep 20, 2023 · 2 comments
Labels
question Further information is requested

Comments

@vladdubchak
Copy link

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!

@daybrush daybrush added the question Further information is requested label Nov 4, 2023
@daybrush
Copy link
Owner

daybrush commented Nov 4, 2023

@vladdubchak

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

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

@vladdubchak
Copy link
Author

Thanks @daybrush , looking forward!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants