Disable autoplay by default if prefers-reduced-motion (#3671)
This commit is contained in:
parent
0847e2752b
commit
24da3a8f4e
2 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
import {z} from 'zod'
|
||||
|
||||
import {deviceLocales} from '#/platform/detection'
|
||||
import {deviceLocales, prefersReducedMotion} from '#/platform/detection'
|
||||
|
||||
const externalEmbedOptions = ['show', 'hide'] as const
|
||||
|
||||
|
@ -98,5 +98,5 @@ export const defaults: Schema = {
|
|||
lastSelectedHomeFeed: undefined,
|
||||
pdsAddressHistory: [],
|
||||
disableHaptics: false,
|
||||
disableAutoplay: false,
|
||||
disableAutoplay: prefersReducedMotion,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue