From 7bd98f3f5fb7e0d1220646b8a4ee7073534a8e8f Mon Sep 17 00:00:00 2001 From: Alessandro Bono Date: Mon, 24 Oct 2022 09:37:27 +0200 Subject: [PATCH] environment: Set time zero when animations are disabled In commit ee09c5c85312f571e14abe69bb6674a361c16d65 we chose to pick the minimum value in order to preserve 0 instead of replacing it with 1. While returning 0 unconditionally when animations are disabled seems the more logic thing to do, we were unsure about possible side effects. Do the change now. Since we are early in the development cycle we should be able to deal with side effects (if any) on time for the next release. Part-of: --- js/ui/environment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/environment.js b/js/ui/environment.js index 8c790da67..5895031c6 100644 --- a/js/ui/environment.js +++ b/js/ui/environment.js @@ -464,7 +464,7 @@ function adjustAnimationTime(msecs) { let settings = St.Settings.get(); if (!settings.enable_animations) - return Math.min(msecs, 1); + return 0; return settings.slow_down_factor * msecs; }