diff nodejs/testdesktop.js @ 849:d1c98eb474e1

Change the code to fit the change of the center of the transformation point.
author wycc
date Mon, 20 Sep 2010 21:49:23 +0800
parents dfe28355bded
children 881efcd8a18f 23dffb564ace
line wrap: on
line diff
--- 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);