1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-10-31 07:11:47 +09:00

Default to animation: false when prefers-reduced-motion is set (#9690)

* Default to `animation: false` when prefers-reduced-motion is set

* `.matches`
This commit is contained in:
Kagami Sascha Rosylight 2023-01-26 08:08:45 +01:00 committed by GitHub
parent 1d6767ef0c
commit 1959cb462b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',