Mercurial > MadButterfly
diff 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 |
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];