changeset 929:d35f9702b8c2

Fix the bug when the last scale is issued before the last one is ended.
author wycc
date Thu, 04 Nov 2010 07:21:17 +0800
parents 35b6a9411e26
children 30cd14b11bc7
files nodejs/animate.js
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nodejs/animate.js	Wed Nov 03 22:02:23 2010 +0800
+++ b/nodejs/animate.js	Thu Nov 04 07:21:17 2010 +0800
@@ -84,6 +84,7 @@
 
 
 function scale_draw(percent) {
+    if (this.end==1) return;
     var sx = 1 + (this.totalsx - 1) * percent;
     var sy = 1 + (this.totalsy - 1) * percent;
     var sh1 = [1, 0, -this.center_x, 0, 1, -this.center_y];