Return slider to start position (like iphone unlock screen)

Hey gang,

I’m trying to figure out how I would go about making a slider button that would return to the start position when the user stops touching it. Essentially, I’m trying to create something very similar to the slide to unlock button on the iphone

I have no problem creating the slider itself, just how I would approach getting it to return to its “home” position in a smooth fashion. Can someone point me in the right direction?

Thanks!
[import]uid: 78150 topic_id: 22932 reply_id: 322932[/import]

Well if the slider has a touch event, you could watch for the “ended” phase and then do a transition.to to slide it back and then have the transition.to’s onComplete handler fire off what ever you want to happen when then slider completes.
[import]uid: 19626 topic_id: 22932 reply_id: 91610[/import]