Replies: 1 comment
-
I'd also like to know if this is expected/deliberate. I'm able to work around this by passing the typed controls |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Im trying to use the controls from useThree() but its type is not of CameraControls (as expected since we are using it as the default controls) but instead EventDispatcher | null. Im wondering if this is correct? The issue with the EventDispatcher type is that I cant enable/disable the controls from other components.
Link:
https://github.com/pmndrs/react-three-fiber/blob/f2e9bcb282eb0354c95c04812867021cde8abc19/packages/fiber/src/core/store.ts#L112C3-L112C41
Beta Was this translation helpful? Give feedback.
All reactions