mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: auto rotate disabling
This commit is contained in:
1 parent
9f15ded0c9
commit
997d1df8f9
1 file changed
+2
+2
@@ -92,6 +92,8 @@ export function Controls({
|
||||
|
||||
const t0 = useRef(Date.now() / 1000);
|
||||
useFrame(() => {
|
||||
if (!doAutoRotate) return;
|
||||
|
||||
const now = Date.now() / 1000;
|
||||
const t = now - t0.current;
|
||||
|
||||
|
||||
Reference in new issue
Block a user