アニメーション減らすオプション有効時はリアクションのアニメーションを無効に
This commit is contained in:
parent
683ddbef3e
commit
eefebab530
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue