-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
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
MapControls doesn't work as expected #47
Comments
I have the same problem — after updating from |
Either of you are welcome to look and make a PR, will be fixed quicker that way. |
I'm looking for the cause right now. TBH I'm not sure if the problem originates from here. I'm not sure what went wrong yet, just wanted to confirm that this problem is happening. |
Ha! Found the problem. It seems it's an issue with Drei's MapControls component. I have two copies of MapControls. One accepts props given to MapControls from drei, the other one is created in drei's MapControls useState with default settings. I commented out This is connected to mrdoob/three.js#20575 and pmndrs/drei#169 as MapControls calls |
This should be the only change needed in `three-stdlib` to close pmndrs#47. I'm following with another change in drei. We don't want to pass domElement to MapControls as it causes a side effect.
This should be the only change needed in `three-stdlib` to close #47. I'm following with another change in drei. We don't want to pass domElement to MapControls as it causes a side effect.
This should be the only change needed in `three-stdlib` to close pmndrs/three-stdlib#47. I'm following with another change in drei. We don't want to pass domElement to MapControls as it causes a side effect.
three
version: 0.126.1@react-three/fiber
version: 6.0.0node
version: 12.18.3npm
(oryarn
) version: 1.22.5chrome@latest
/edge@latest
Problem description:
When visiting https://drei.pmnd.rs/?path=/story/controls-mapcontrols--map-controls-scene-st everything works as expected.
When I tried running drei's storybook locally, I get this:

CC: pmndrs/drei#351
The text was updated successfully, but these errors were encountered: