spin-controls
spin-controls copied to clipboard
[Bug] dollying when open the console , make crash
hi, i'm sorry I'm not a native speaker of English
To Reproduce
Steps to reproduce the behavior:
- visit the demo, https://paulhax.github.io/spin-controls/
- open the console
- zoomIn && zoomOut 10 times quickly
- looks like crash
Live example
zoom factor become less and less , looks like crash
but when i close the console, it works well
Expected behavior dollying has smoother animation when i open the console
Platform:
- Device: [Desktop]
- OS: [MacOS]
- Browser: [Chrome]
- Three.js version: [124?]
hi 同修 加个节流会不会好点
Looks like the trackball/target position gets set too close, so zoom/dolly changes very little. I'm not sure why. Perhaps has to do with order of events before index.html calls controls.setTargetPosition
Thank you for the detailed issue writeup! If you happen to establish mouse event level reproduction step , that could be helpful.