We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Thanks for the great library!
When I run two Three.js scenes on the same page, your <Ecctrl> reacts to events coming from the other scene.
<Ecctrl>
This happens because you document.addEventListener in useFollowCam.tsx.
document.addEventListener
useFollowCam.tsx
Could we optionally provide an alternative root element?
The text was updated successfully, but these errors were encountered:
I think you could just disable the followCam: <Ecctrl disableFollowCam >
<Ecctrl disableFollowCam >
Sorry, something went wrong.
Sure that works, and since I intend to refactor your code to create my own controller this is not a real problem for me.
But if someone wants to use your library unmodified without writing their own camera, it would be nice to have the option.
Happy to make a PR, and even add some types.
Imo, disableFollowCam should be enough as an option. But if you have any better thoughts or ideas, you are more than welcome to share 👍
No branches or pull requests
Thanks for the great library!
When I run two Three.js scenes on the same page,
your
<Ecctrl>
reacts to events coming from the other scene.This happens because you
document.addEventListener
inuseFollowCam.tsx
.Could we optionally provide an alternative root element?
The text was updated successfully, but these errors were encountered: