From 4c06f9a6e21d35bc7d4bfb81e448534fc41e8a7f Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 15 Jun 2024 13:44:59 +0100 Subject: [PATCH] `followmouse` should be gated by "play animation" button --- packages/frontend/src/scripts/check-animated-mfm.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/scripts/check-animated-mfm.ts b/packages/frontend/src/scripts/check-animated-mfm.ts index ec040a0234..f7f9b743b6 100644 --- a/packages/frontend/src/scripts/check-animated-mfm.ts +++ b/packages/frontend/src/scripts/check-animated-mfm.ts @@ -16,7 +16,8 @@ export function checkAnimationFromMfm(nodes: mfm.MfmNode[]): boolean { node.props.name === 'jump' || node.props.name === 'bounce' || node.props.name === 'rainbow' || - node.props.name === 'sparkle') { + node.props.name === 'sparkle' || + node.props.name === 'followmouse') { return true; } else { return false;