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

Select: Add deselectOnSecondClick prop (#1385) #1648

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Haschtl
Copy link

@Haschtl Haschtl commented Sep 9, 2023

Why

If you combine with you will notice, that an Object is deselected after you stop dragging it. In some scenarios it's unintuitive that the object is deselected on the second click. What Added the deselectOnSecondClick prop (default: true) to Select, which allows to disable the deselect-on-second-click behavior.

@vercel
Copy link

vercel bot commented Sep 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drei ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 9, 2023 8:26pm

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 9, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 97ea628:

Sandbox Source
hardcore-chebyshev-j586g6 Configuration
Ground reflections and video textures Configuration
arc-x-pmndrs-colors Configuration

@drcmda
Copy link
Member

drcmda commented Sep 13, 2023

if you drag it and let the button go - imo if it deselects that is a bug, no? it seems unintuitive and i would much prefer a bugfix in that case than an extra prop.

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

Successfully merging this pull request may close these issues.

None yet

2 participants