So I have been trying hard enough with this, I just have to ask:
How to remove a timeOut (or alternate version from setAndStartTimer).
For whatever I do, it still triggers or in case of the new setAndStartTimer it says it’s removed but the next time I create it, it adds to the former one.
Basically, I thought I was doing something simple.
I have a function that depending on conditions starts a timer. On timer end, another function is called that starts an animation.
But, if aborted (because I.E. I’m requesting a new timeOut for another animation), I need this former timeOut to be removed and not to trigger, while the new one will kick-in.
For some reason, I’m just unable to remove/clear this timeout (classic or new).
Thanks in advance for your help with this. Meanwhile, have a great day