From 8f62f8a062101f511c47c0da40f256cb53d97352 Mon Sep 17 00:00:00 2001 From: DrHaid <40427630+DrHaid@users.noreply.github.com> Date: Sat, 13 Dec 2025 21:02:39 +0100 Subject: [PATCH] Move axe back to original position after chop --- src/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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) =>