Closed ikteru closed 8 months ago
Could you make a sandbox of this proposal? I'm not sure I understand your intent
I just want to use DragControls with React Three Fiber in a streamlined way. The suggestion above is one example. An other example would be some kind of hook like how it's done in React UseGesture. I want to be able to somehow exploit the events that DragControls dispatches. React UseGesture for example give you access to event using useDrag or useHover. That's a great of doing it for example. ( It's hard to make a sandbox of something that isn't created yet ! )
:tada: This issue has been resolved in version 9.99.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Is it possible to create a DragControls component that has event listeners as props the same way a mesh does in React-Three-Fiver:
Except, instead of being able to pass a callback to events like onClick, we pass them to the DragControls triggered events:
So, it becomes something like: