I can manipulate transitions by transition.pause/resume/cancel/etc(object), but can I check, is there any active transitions at the moment?
Hi @tolstyak0777,
At this time, not directly. You could use an onComplete listener for the transition to know when it’s finished, setting a property on the object when so, or something similar to that, but there’s not a function to directly see if the object is “undergoing a transition”.
Best regards,
Brent
Could you add function which can do that in further updates, please? That would save me giant amount of work.
Thx
@tolstyak0777 this would be simple to do with some abstraction… and extend the transition library.
Simply create a wrapper function for the transaction library that sets an isTransitioning = true property, does your transition and add an onComplete handler to nil it out.
Then at any time you could do if obj.isTransitioning then …
Hi @tolstyak0777,
At this time, not directly. You could use an onComplete listener for the transition to know when it’s finished, setting a property on the object when so, or something similar to that, but there’s not a function to directly see if the object is “undergoing a transition”.
Best regards,
Brent
Could you add function which can do that in further updates, please? That would save me giant amount of work.
Thx
@tolstyak0777 this would be simple to do with some abstraction… and extend the transition library.
Simply create a wrapper function for the transaction library that sets an isTransitioning = true property, does your transition and add an onComplete handler to nil it out.
Then at any time you could do if obj.isTransitioning then …