# HG changeset patch # User Thinker K.F. Li # Date 1283237725 -28800 # Node ID 76470d692bb9f562646cfa9b883ecc04736813ff # Parent ba6bb69ee4192034ba39312462d02d50e962b3ea Rotate an icon when it is pressed diff -r ba6bb69ee419 -r 76470d692bb9 nodejs/phone.js --- 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(); }); } diff -r ba6bb69ee419 -r 76470d692bb9 nodejs/phone_ui.svg --- a/nodejs/phone_ui.svg Tue Aug 31 14:54:47 2010 +0800 +++ b/nodejs/phone_ui.svg Tue Aug 31 14:55:25 2010 +0800 @@ -26,7 +26,7 @@ inkscape:pageshadow="2" inkscape:zoom="0.90416667" inkscape:cx="312.60279" - inkscape:cy="61.259335" + inkscape:cy="186.36119" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="false" @@ -51,17 +51,20 @@ inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" - transform="translate(0,-572.3622)"> + inkscape:bbox-x="-1.1059908" + inkscape:bbox-y="-860.32248" + inkscape:bbox-width="415.19362" + inkscape:bbox-height="773.49026"> + inkscape:bbox-height="43.133648" + transform="translate(1.1059905,-570.69124)"> + inkscape:bbox-x="2.2255181" + inkscape:bbox-y="-289.63124" + inkscape:bbox-width="317.40625" + inkscape:bbox-height="359.25593" + mbname="dock" + transform="translate(1.1059905,-570.69124)">