mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-01 07:35:57 +09:00
アニメーション減らすオプション有効時はリアクションのアニメーションを無効に
This commit is contained in:
parent
683ddbef3e
commit
eefebab530
@ -21,6 +21,7 @@ import { useTooltip } from '@/scripts/use-tooltip';
|
|||||||
import { $i } from '@/account';
|
import { $i } from '@/account';
|
||||||
import MkReactionEffect from '@/components/MkReactionEffect.vue';
|
import MkReactionEffect from '@/components/MkReactionEffect.vue';
|
||||||
import { claimAchievement } from '@/scripts/achievements';
|
import { claimAchievement } from '@/scripts/achievements';
|
||||||
|
import { defaultStore } from '@/store';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
reaction: string;
|
reaction: string;
|
||||||
@ -61,6 +62,7 @@ const toggleReaction = () => {
|
|||||||
|
|
||||||
const anime = () => {
|
const anime = () => {
|
||||||
if (document.hidden) return;
|
if (document.hidden) return;
|
||||||
|
if (!defaultStore.state.animation) return;
|
||||||
|
|
||||||
const rect = buttonEl.value.getBoundingClientRect();
|
const rect = buttonEl.value.getBoundingClientRect();
|
||||||
const x = rect.left + 16;
|
const x = rect.left + 16;
|
||||||
|
Loading…
Reference in New Issue
Block a user