fix: initial animation frame
This commit is contained in:
parent
ce43e281d1
commit
779ade1058
|
@ -68,7 +68,7 @@ const Stage = ({
|
|||
renderer.render(renderable);
|
||||
handle = requestAnimationFrame(tick);
|
||||
};
|
||||
tick(0);
|
||||
handle = requestAnimationFrame(tick);
|
||||
return () => {
|
||||
if (handle) {
|
||||
cancelAnimationFrame(handle);
|
||||
|
|
Loading…
Reference in New Issue
Block a user