-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No animations on Chromium 73 or older #6269
Comments
@lkinasiewicz Thanks for posting the issue! We are not so sure about your PR since it has a potential to introduce a lot of regression. However, there is a pretty neat fix you could use: in the latest nightly version, new component called |
@szydlovsky I wonder if there's even a possibility for the regression. Affected media query is supported since Chromium 74. EDIT: Moreover, if browser has no "reduced motion" feature, then assuming it's "on" is wrong, it forces a11y feature without a user's consent. |
I would rather say that from the beginning, the feature of recognizing reduced motion in reanimated introduced a regression on all browsers not supporting this feature. Sorry, but I don't understand how fixing that might be seen as a regression. Regarding the new By the way, why is reanimated not using react native API? https://reactnative.dev/docs/accessibilityinfo#isreducemotionenabled |
@lkinasiewicz alright we will have the PR carefully looked into and discuss the topic in the team. Thanks for pointing it out! |
## Summary Fixes #6269 `prefers-reduced-motion` was introduced in Chromium 74: https://chromestatus.com/feature/5597964353404928 The code on `main` branch seems not to care about the case when there is no definition of `prefers-reduced-motion`.
Description
All animations behave as if the duration was set to 0 on Chrome/Chromium 73 or older.
I know no one uses Chrome 73 today, but Chromium 69 is used to run apps on Samsung TVs with Tizen 5.5 (TV model year 2020) and Chromium 68 is used on LG TVs with WebOS 5 (TV model year 2020).
Steps to reproduce
withTiming
to animate e.g. a position of a View.On Chromium 74 animations work properly.
Snack or a link to a repository
https://snack.expo.dev/@lkinasiewicz/7dcc01
Reanimated version
3.14.0
React Native version
0.72.6
Platforms
Web
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: