mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-02 00:38:14 +09:00
refactor
This commit is contained in:
parent
c066013c57
commit
f4e6d73a8a
@ -66,10 +66,8 @@ onMounted(() => {
|
||||
setPosition();
|
||||
|
||||
const loop = () => {
|
||||
loopHandler = window.requestAnimationFrame(() => {
|
||||
setPosition();
|
||||
loop();
|
||||
});
|
||||
setPosition();
|
||||
loopHandler = window.requestAnimationFrame(loop);
|
||||
};
|
||||
|
||||
loop();
|
||||
|
Loading…
Reference in New Issue
Block a user