Setting $wgTabberNeueEnableAnimation = false; doesn't actually do anything in the current version of TabberNeue.
This is because shouldShowAnimation() is checking whether the user has not enabled reduced motion orconfig.enableAnimation is not true. The second condition check is short-circuited because the first (effectively whether reduced motion is NOT enabled) is true, so the function always returns true.
Instead, we should check whether reduced motion is not enabled and whether config.enableAnimation is true.
Setting
$wgTabberNeueEnableAnimation = false;
doesn't actually do anything in the current version of TabberNeue.This is because
shouldShowAnimation()
is checking whether the user has not enabled reduced motion orconfig.enableAnimation
is not true. The second condition check is short-circuited because the first (effectively whether reduced motion is NOT enabled) istrue
, so the function always returnstrue
.Instead, we should check whether reduced motion is not enabled and whether
config.enableAnimation
is true.