Skip to content

environment: Use zero duration for animations if disabled

If animations are disabled we force the duration to 1ms, however this would still imply to pass through the transition code path, instead of applying the changes promptly.

Use different adjustment for tweener animations instead to preserve logic prior to commit 99b4e047.

Fixes #1749


I'm not sure if this had some historic reasons (no clear explanations there) for being set to 1 instead of 0, but I can't find any issue by doing that but instead having the changes being applied immediately without any transition loop, at least for native clutter easing.

I've added some compatibility code to Tweener, although even trying with pure zero there, things seems to work fine anyways.

Edited by Florian Müllner

Merge request reports