mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 06:43:09 +02:00
refactor
This commit is contained in:
parent
c066013c57
commit
f4e6d73a8a
1 changed files with 2 additions and 4 deletions
|
@ -66,10 +66,8 @@ onMounted(() => {
|
||||||
setPosition();
|
setPosition();
|
||||||
|
|
||||||
const loop = () => {
|
const loop = () => {
|
||||||
loopHandler = window.requestAnimationFrame(() => {
|
|
||||||
setPosition();
|
setPosition();
|
||||||
loop();
|
loopHandler = window.requestAnimationFrame(loop);
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
loop();
|
loop();
|
||||||
|
|
Loading…
Reference in a new issue