You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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