Support restoring zoom; use a counter instead of timeout; account for more input types

This commit is contained in:
49lf
2024-09-17 15:22:59 -04:00
parent 08b776134f
commit b78c6508c2
2 changed files with 32 additions and 22 deletions

View File

@ -332,7 +332,6 @@ export class SceneInfra {
}
animate = () => {
requestAnimationFrame(this.animate)
TWEEN.update() // This will update all tweens during the animation loop
if (!this.isFovAnimationInProgress) {
// console.log('animation frame', this.cameraControls.camera)
@ -340,6 +339,7 @@ export class SceneInfra {
this.renderer.render(this.scene, this.camControls.camera)
this.labelRenderer.render(this.scene, this.camControls.camera)
}
requestAnimationFrame(this.animate)
}
dispose = () => {