comparison nodejs/animate.js @ 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 85b647f5aeff
children 191d3a5f74c8
comparison
equal deleted inserted replaced
928:35b6a9411e26 929:d35f9702b8c2
82 return m; 82 return m;
83 } 83 }
84 84
85 85
86 function scale_draw(percent) { 86 function scale_draw(percent) {
87 if (this.end==1) return;
87 var sx = 1 + (this.totalsx - 1) * percent; 88 var sx = 1 + (this.totalsx - 1) * percent;
88 var sy = 1 + (this.totalsy - 1) * percent; 89 var sy = 1 + (this.totalsy - 1) * percent;
89 var sh1 = [1, 0, -this.center_x, 0, 1, -this.center_y]; 90 var sh1 = [1, 0, -this.center_x, 0, 1, -this.center_y];
90 var sh2 = [1, 0, this.center_x, 0, 1, this.center_y]; 91 var sh2 = [1, 0, this.center_x, 0, 1, this.center_y];
91 var scale = [sx, 0, 0, 0, sy, 0]; 92 var scale = [sx, 0, 0, 0, sy, 0];