I want to make a widget button scale up on press and scale back down on release.
Currently I can’t figure this out with the standard event handeling in the button widget.
if event.phase == "began" then --scale button up end if event.phase == "moved" and event is over button then --scale button up if event.phase == "moved" then and event is NOT over button then --scale button down if event.phase == "ended" then --scale button down
Basically the “moved” phase is not contingent on first receiving a “began” event.
In this logic, it works fine until you start the touch event off of the button, slide your finger onto the button, and then slide off it again.
In this scenario It will scale the button up but never scale it back down.
Since there is not a ‘touch failed’ event I can’t get it to scale the button back to normal.
Any ideas how to get his to work?
Thanks!
Gullie667