environment: Adjust optional delay parameter

All timing parameters should take the `slow-down-factor` and
`enable-animations` settings into account, but the delay parameter
of property/adjustment animations was forgotten.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2986>
This commit is contained in:
Alessandro Bono 2024-09-06 10:47:25 +02:00 committed by Marge Bot
parent 91ae7de3ad
commit a52a931fb1

View File

@ -174,6 +174,9 @@ function _easeActorProperty(actor, propName, target, params) {
params.duration = adjustAnimationTime(params.duration);
let duration = Math.floor(params.duration || 0);
if (params.delay)
params.delay = adjustAnimationTime(params.delay);
const repeatCount = params.repeatCount;
delete params.repeatCount;