アニメーション減らすオプション有効時はリアクションのアニメーションを無効に

This commit is contained in:
syuilo 2023-01-23 16:36:47 +09:00
parent 683ddbef3e
commit eefebab530
1 changed files with 2 additions and 0 deletions

View File

@ -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;