浏览代码

schedule redraw before actually redrawing.

Lucas Stadler 12 年之前
父节点
当前提交
1499453587
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      js/pixl/public/trixl.html

+ 2 - 1
js/pixl/public/trixl.html

@ -423,8 +423,9 @@
423 423
		}
424 424
425 425
		trixl.step = function(t) {
426
			trixl.redraw(t);
427 426
			trixl.step.reqId = requestAnimationFrame(trixl.step);
427
428
			trixl.redraw(t);
428 429
		}
429 430
		trixl.start = function() {
430 431
			trixl.step.reqId = requestAnimationFrame(trixl.step);