PaulHax / spin-controls

Arcball style controls for three.js Object3Ds and Cameras. Featuring pointer to trackball accuracy and unlimited rotation.
https://paulhax.github.io/spin-controls/
MIT License
78 stars 12 forks source link

[Bug] dollying when open the console , make crash #15

Open liangyuqi opened 3 years ago

liangyuqi commented 3 years ago

hi, i'm sorry I'm not a native speaker of English

To Reproduce

Steps to reproduce the behavior:

  1. visit the demo, https://paulhax.github.io/spin-controls/
  2. open the console
  3. zoomIn && zoomOut 10 times quickly
  4. looks like crash

Live example

zoom factor become less and less , looks like crash test3

but when i close the console, it works well test1

Expected behavior dollying has smoother animation when i open the console

Platform:

Yty202020 commented 3 years ago

hi 同修 加个节流会不会好点

PaulHax commented 3 years ago

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.