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

Added preventOverlap flag to DragControls #2098

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

Conversation

niccolofanton
Copy link

@niccolofanton niccolofanton commented Sep 18, 2024

WHY

Solves #2097

WHAT

This PR introduces a new property preventOverlap on the DragControls component that, if set to true, prevents the Click event from propagating to other DragControls

Registrazione.schermo.2024-09-18.alle.13.25.43.mov

Copy link

vercel bot commented Sep 18, 2024

@niccolofanton is attempting to deploy a commit to the Poimandres Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

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.

@abernier
Copy link
Member

abernier commented Dec 5, 2024

could you provide the code with the overlapping DragControls?

wouldn't be better to pass the event object to the onDrag prop callback?

also, i'm wondering if any dragConfig option could natively handle this instead...

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.

2 participants