Skip to content

Conversation

astralarya
Copy link

Why

useGesture, the underlying library for DragControls, supports passing handlers such as onClick to be called seamlessly during gesture handling. This enables us to call things like event.stopPropagation() to occlude raycast events from React Three Fiber.

What

Add a handlers prop, which is spread into the useGesture call.

Checklist

  • Documentation updated (example)
  • Ready to be merged

Copy link

vercel bot commented Sep 16, 2025

@astralarya 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.

@astralarya astralarya changed the title Drag control handlers feat(DragControls): Pass through useGesture handlers Sep 17, 2025
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.

1 participant