repeat action looping forever if not cleared #1852
Unanswered
herobank110
asked this question in
Q&A
Replies: 1 comment 2 replies
-
additionally, I have found callMethod action to be unreliable as it is sometimes not even called |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
not sure if this is a bug or feature but my truck has an easeTo action followed by a callMethod. in this method I schedule some more actions with a repeat of (lets say) 3. I expected only those items just scheduled to be repeated, 3 times.
firstly, it repeated the 2nd round of actions forever which is surely a bug
secondly when using a
this.actions.clearActions()
before the 2nd round of actions it worked, but the actions happened N + 1 (in my case 3 + 1 = 4) times. maybe this is intentional since I guess the first time round is not 'repeated' and subsequently they are repeats, but if you look at semantic meaning ofrepeat
eg in CSS or LOGO it is instead doing the action N times. if I had anitems.length - 1
, to catch the case of 1 length where essentially I would want the loop body once (no loop), it would repeat forever because zero = infinitythirdly, repeat doesn't seem to respect delay actions in the loop body
Beta Was this translation helpful? Give feedback.
All reactions