summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKagami Sascha Rosylight <saschanaz@outlook.com>2023-01-26 08:08:45 +0100
committerGitHub <noreply@github.com>2023-01-26 16:08:45 +0900
commit1959cb462b352f5bfc72c869ab40a6fc0917ea99 (patch)
tree728c0be468ed9dfeb820e050d455d467a9c5d933
parentTry reinstalling cypress in CI (#9694) (diff)
downloadmisskey-1959cb462b352f5bfc72c869ab40a6fc0917ea99.tar.gz
misskey-1959cb462b352f5bfc72c869ab40a6fc0917ea99.tar.bz2
misskey-1959cb462b352f5bfc72c869ab40a6fc0917ea99.zip
Default to `animation: false` when prefers-reduced-motion is set (#9690)
* Default to `animation: false` when prefers-reduced-motion is set * `.matches`
-rw-r--r--packages/frontend/src/store.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/store.ts b/packages/frontend/src/store.ts
index b29d9355ba..3f1ab60525 100644
--- a/packages/frontend/src/store.ts
+++ b/packages/frontend/src/store.ts
@@ -156,7 +156,7 @@ export const defaultStore = markRaw(new Storage('base', {
},
animation: {
where: 'device',
- default: true,
+ default: !matchMedia('(prefers-reduced-motion)').matches,
},
animatedMfm: {
where: 'device',