I swear I’ve asked this, or seen the solution, but I can’t find it now. Apologies for redundancy.
I have launched an animation on an element when you Mouse Down, and want it to reverse On Mouse Up, but there’s a bug I’m looking for the work-around on:
There were some google suggestions of promoting blocking elements with animated z-index, but that didn’t detect the Mouse Up either. I have the feeling I’m going be coding to get around it.
This will likely stick if the mouse drags slightly when clicking down.
I think if that happen mouse events will bubble through drag gesture event rather than a mouse events.
You probably could add an action on the on drag to run code to take care of that using drag end event
if (event['hypeGesturePhase'] == hypeDocument.kHypeGesturePhaseEnd ){
hypeDocument.continueTimelineNamed('anim', hypeDocument.kDirectionReverse, false)
}