diff --git a/src/index.ts b/src/index.ts index 025b7e7..ae16fa7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -35,6 +35,9 @@ interface AxeAnimationArgs { } const playAxeAnimation = async ({axe, stickyNote, onChopped}: AxeAnimationArgs) => { + const originalX = axe.x; + const originalY = axe.y; + await miro.board.bringToFront(axe); axe.x = stickyNote.x; axe.y = stickyNote.y; @@ -51,6 +54,10 @@ const playAxeAnimation = async ({axe, stickyNote, onChopped}: AxeAnimationArgs) } onChopped(); + + axe.x = originalX; + axe.y = originalY; + await axe.sync(); } const postInfoNotification = async (message: string) =>