Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Commit

Permalink
fix 軽微なバグ
Browse files Browse the repository at this point in the history
  • Loading branch information
Forenard committed May 1, 2022
1 parent 283e449 commit 2a78394
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/camera/VisualizerCamera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ export class VisualizerCamera extends PerspectiveCamera implements IRenderable {
this.position.set(0, 3, -6)
this.lookAt(0, 0, 0)
EventEmitter.on('submit', ({ userId }) => {
if (this.state == 'cpu' || this.state == 'display') return
if (
this.state == 'cpu' ||
this.state == 'display' ||
this.state == 'recalculate'
)
return
this.userId = userId
this.changeState('cpu')
gsap.delayedCall(2, () => {
Expand Down

0 comments on commit 2a78394

Please sign in to comment.