Browse Source

schedule redraw before actually redrawing.

Lucas Stadler 12 years ago
parent
commit
1499453587
1 changed files with 2 additions and 1 deletions
  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);