diff options
| author | dakkar <dakkar@thenautilus.net> | 2024-06-15 13:44:59 +0100 |
|---|---|---|
| committer | dakkar <dakkar@thenautilus.net> | 2024-06-15 13:45:27 +0100 |
| commit | 4c06f9a6e21d35bc7d4bfb81e448534fc41e8a7f (patch) | |
| tree | 195afef9056a3b1f111fe19765a44643622770d0 /packages | |
| parent | merge: run tests in CI (!549) (diff) | |
| download | sharkey-4c06f9a6e21d35bc7d4bfb81e448534fc41e8a7f.tar.gz sharkey-4c06f9a6e21d35bc7d4bfb81e448534fc41e8a7f.tar.bz2 sharkey-4c06f9a6e21d35bc7d4bfb81e448534fc41e8a7f.zip | |
`followmouse` should be gated by "play animation" button
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/frontend/src/scripts/check-animated-mfm.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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; |