Mercurial > MadButterfly
diff nodejs/phone.js @ 800:76470d692bb9
Rotate an icon when it is pressed
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 31 Aug 2010 14:55:25 +0800 |
parents | 891bbaca1d8f |
children | 586e50f82c1f |
line wrap: on
line diff
--- a/nodejs/phone.js Tue Aug 31 14:54:47 2010 +0800 +++ b/nodejs/phone.js Tue Aug 31 14:55:25 2010 +0800 @@ -41,6 +41,8 @@ }); icon.mouse_event.add_event_observer(4, function(evt) { pressholder.go_center(evt.cur_tgt); + var rotate = new animate.rotate(app, evt.cur_tgt, 2 * 3.1415, 0.7); + rotate.start(); }); }