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