1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-01 23:15:47 +02:00

fix(frontend): confettiの実行がアニメーション設定を考慮していない問題を修正 (#16714)

* fix(frontend): confettiの実行がアニメーション設定を考慮していない問題を修正

* Update Changelog

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
かっこかり
2025-10-27 18:41:03 +09:00
committed by GitHub
parent 17da44078b
commit 4e16e23acd
5 changed files with 20 additions and 9 deletions

View File

@@ -5,6 +5,7 @@
import * as Misskey from 'misskey-js';
import { hemisphere } from '@@/js/intl-const.js';
import { prefersReducedMotion } from '@@/js/config.js';
import { definePreferences } from './manager.js';
import type { Theme } from '@/theme.js';
import type { SoundType } from '@/utility/sound.js';
@@ -211,10 +212,10 @@ export const PREF_DEF = definePreferences({
default: false,
},
animation: {
default: !window.matchMedia('(prefers-reduced-motion)').matches,
default: !prefersReducedMotion,
},
animatedMfm: {
default: !window.matchMedia('(prefers-reduced-motion)').matches,
default: !prefersReducedMotion,
},
advancedMfm: {
default: true,
@@ -232,7 +233,7 @@ export const PREF_DEF = definePreferences({
default: false,
},
disableShowingAnimatedImages: {
default: window.matchMedia('(prefers-reduced-motion)').matches,
default: prefersReducedMotion,
},
emojiStyle: {
default: 'twemoji', // twemoji / fluentEmoji / native