# HG changeset patch # User wycc # Date 1284990563 -28800 # Node ID d1c98eb474e1071b7dd4c61df6b3e42915d1cafd # Parent 702e4874a58a6e499ca4a53eb64fa55d39cc6c2f Change the code to fit the change of the center of the transformation point. diff -r 702e4874a58a -r d1c98eb474e1 nodejs/testdesktop.js --- a/nodejs/testdesktop.js Mon Sep 20 21:47:21 2010 +0800 +++ b/nodejs/testdesktop.js Mon Sep 20 21:49:23 2010 +0800 @@ -63,7 +63,7 @@ return; } var target = lines[line]; - var sy = target.y-20-lightbar.y; + var sy = target.y-lightbar.y; sys.puts(sy); var an = new animate.linear(app,lightbar,0,sy,0.3); an.start(); @@ -76,7 +76,7 @@ return; } var target = lines[line]; - var sy = target.y-20-lightbar.y; + var sy = target.y-lightbar.y; sys.puts("line="+line); sys.puts("sy="+sy); sys.puts("target.y="+target.y);