# HG changeset patch # User Thinker K.F. Li # Date 1283194494 -28800 # Node ID 85c5949352bb5eb97aac8772eb419363eedd743f # Parent fbf26794c02d5229d7e5e84ac740032ad665cb3a Slide the dock of phone UI diff -r fbf26794c02d -r 85c5949352bb nodejs/phone.js --- a/nodejs/phone.js Tue Aug 31 02:47:22 2010 +0800 +++ b/nodejs/phone.js Tue Aug 31 02:54:54 2010 +0800 @@ -51,10 +51,13 @@ var sw = 0; dock.mouse_event.add_event_observer(4, function(evt) { - if(sw == 0) - dockholder.shift(0, -300); - else - dockholder.home(); + if(sw == 0) { + var an = new animate.linear(app, dock, 0, -300, 0.5); + an.start(); + } else { + var an = new animate.linear(app, dock, 0, 0, 0.5); + an.start(); + } sw = (sw + 1) % 2; });