Commit b6754d7d authored by Florian Müllner's avatar Florian Müllner Committed by Florian Müllner

environment: Try harder to find a transition

When easing, we need the transition of one of the involved properties
to connect our callbacks. Currently we simply get the transition for
the first property, however as Clutter optimizes the case where a
property doesn't actually change, that transition may be NULL even
though we still animate other properties.

So instead of only looking at the transition of the first property,
try to find a transition for any of the involved properties.

parent 2a9977a5
Pipeline #116750 passed with stages
in 5 minutes and 14 seconds
......@@ -121,7 +121,9 @@ function _easeActor(actor, params) {
let transition = actor.get_transition(animatedProps[0]);
let transition = => actor.get_transition(p))
.find(t => t !== null);
if (transition)
transition.connect('stopped', (t, finished) => callback(finished));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment