I am writing a script with different behavior for solo-click, double-click and long press.
I am scripting the solo-click behavior first, followed by the OnSustain function, followed by the OnRepeat function.
In the solo-click behavior, I would like to use "wait" during synchronize to wait for trackLeader cycle and then continue.
However, this triggers the OnRepeat function and OnSustain function for some reason (although I just pressed once and do not hold).
After that happens, additional executions of the script seem to ignore everything except the OnSustain functions, so the script becomes useless.
During testing, I found that wait does not seem to trigger OnSustain of there is no OnRepeat, but it trigger OnRepeat and both.
Is this a bug or am I doing something wrong?