fix: incorrect conditions for shouldShowAnimation (#165)

This commit is contained in:
Jayden 2024-07-17 18:04:52 +01:00 committed by GitHub
parent 2037cf38eb
commit 2f7e652e28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,8 +25,8 @@ class TabberAction {
*/
static shouldShowAnimation() {
return (
!window.matchMedia( '(prefers-reduced-motion: reduce)' ).matches ||
!config.enableAnimation
!window.matchMedia( '(prefers-reduced-motion: reduce)' ).matches &&
config.enableAnimation
);
}