From 1959cb462b352f5bfc72c869ab40a6fc0917ea99 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Thu, 26 Jan 2023 08:08:45 +0100 Subject: [PATCH] Default to `animation: false` when prefers-reduced-motion is set (#9690) * Default to `animation: false` when prefers-reduced-motion is set * `.matches` --- packages/frontend/src/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',