Moving off a button (with widget.newButton)

This is a really silly question.  I have a button (made with widget.newButton) that, when the event.phase == began, does a transition.  When event.phase is ended, it transitions back.  But, if you start the transition and then move your finger off, it stays in the event began stage.  

How I can have it revert back to the pre-touch state (without triggering the action that I would call if the event ended on the button) if the player moves off the button after starting the event.

Thanks!

Perhaps you could start a timer that would move it back if you don’t get the “ended” phase in a certain amount of time.  The timer could call a function to transition your object back.

Rob

Interesting.  Great idea.  I did just that but with a delayed transition instead of a timer.  Just a personal preference (I tend to use transitions when possible over timers). Since I can tag them, I find it easier to pause all of my transitions.   But that did it!  Thanks, Rob.  You da man.

Perhaps you could start a timer that would move it back if you don’t get the “ended” phase in a certain amount of time.  The timer could call a function to transition your object back.

Rob

Interesting.  Great idea.  I did just that but with a delayed transition instead of a timer.  Just a personal preference (I tend to use transitions when possible over timers). Since I can tag them, I find it easier to pause all of my transitions.   But that did it!  Thanks, Rob.  You da man.