diff --git a/index.html b/index.html index 0833d5a..67c2714 100644 --- a/index.html +++ b/index.html @@ -277,6 +277,7 @@ let friction = 0.01; let sensitivity = 0.01; + let velocity = 0; const orientation = { __value: new Quaternion({x: 0, y: 0, z: 0, w: 1}), @@ -301,8 +302,6 @@ }, }; - let velocity = 0; - document.addEventListener("mouseleave", () => { mouse.down = false; }); @@ -346,4 +345,4 @@ - + \ No newline at end of file