MOBILE-4470 core: Default to reduced motion in old devices

main
Noel De Martin 2024-02-01 13:46:10 +01:00
parent a81b97aead
commit 6548346dca
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ export class CorePlatformService extends Platform {
* @returns Whether the device is configured to reduce motion.
*/
prefersReducedMotion(): boolean {
return window.matchMedia('(prefers-reduced-motion: reduce)').matches;
// Default to reduced motion in devices that don't support this CSS property.
return !window.matchMedia('(prefers-reduced-motion: no-preference)').matches;
}
/**