浏览代码

schedule redraw before actually redrawing.

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

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

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