spin-controls icon indicating copy to clipboard operation
spin-controls copied to clipboard

[Bug] dollying when open the console , make crash

Open liangyuqi opened this issue 3 years ago • 2 comments

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:

  • Device: [Desktop]
  • OS: [MacOS]
  • Browser: [Chrome]
  • Three.js version: [124?]

liangyuqi avatar Jun 18 '21 08:06 liangyuqi

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

Yty202020 avatar Jun 19 '21 12:06 Yty202020

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.

PaulHax avatar Jun 19 '21 20:06 PaulHax