summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-01-23 16:36:47 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-01-23 16:36:47 +0900
commiteefebab5302aac9751128c4b24f53678ab73ff0c (patch)
tree4dbc182dab44d83b2ccca26162dc1c6168e54f0a /packages/frontend/src/components
parentupdate contributors (diff)
downloadmisskey-eefebab5302aac9751128c4b24f53678ab73ff0c.tar.gz
misskey-eefebab5302aac9751128c4b24f53678ab73ff0c.tar.bz2
misskey-eefebab5302aac9751128c4b24f53678ab73ff0c.zip
アニメーション減らすオプション有効時はリアクションのアニメーションを無効に
Diffstat (limited to 'packages/frontend/src/components')
-rw-r--r--packages/frontend/src/components/MkReactionsViewer.reaction.vue2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkReactionsViewer.reaction.vue b/packages/frontend/src/components/MkReactionsViewer.reaction.vue
index ec4042d18c..eed6b46594 100644
--- a/packages/frontend/src/components/MkReactionsViewer.reaction.vue
+++ b/packages/frontend/src/components/MkReactionsViewer.reaction.vue
@@ -21,6 +21,7 @@ import { useTooltip } from '@/scripts/use-tooltip';
import { $i } from '@/account';
import MkReactionEffect from '@/components/MkReactionEffect.vue';
import { claimAchievement } from '@/scripts/achievements';
+import { defaultStore } from '@/store';
const props = defineProps<{
reaction: string;
@@ -61,6 +62,7 @@ const toggleReaction = () => {
const anime = () => {
if (document.hidden) return;
+ if (!defaultStore.state.animation) return;
const rect = buttonEl.value.getBoundingClientRect();
const x = rect.left + 16;