refactor
This commit is contained in:
parent
c066013c57
commit
f4e6d73a8a
|
@ -66,10 +66,8 @@ onMounted(() => {
|
||||||
setPosition();
|
setPosition();
|
||||||
|
|
||||||
const loop = () => {
|
const loop = () => {
|
||||||
loopHandler = window.requestAnimationFrame(() => {
|
setPosition();
|
||||||
setPosition();
|
loopHandler = window.requestAnimationFrame(loop);
|
||||||
loop();
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
loop();
|
loop();
|
||||||
|
|
Loading…
Reference in New Issue