Skip to content

Commit

Permalink
Merge remote-tracking branch 'klocatelli/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Nov 20, 2011
2 parents c56c31a + 1876056 commit c76ba31
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
// Greetings to Iq/RGBA! ;)

var quality = 2, quality_levels = [ 0.5, 1, 2, 4, 8 ];
var toolbar, compileButton, fullscreenButton;
var toolbar, compileButton, fullscreenButton, compileTimer;
var code, canvas, gl, buffer, currentProgram, vertexPosition,
parameters = { startTime: Date.now(), time: 0, mouseX: 0.5, mouseY: 0.5, screenWidth: 0, screenHeight: 0 },
frontTarget, backTarget, screenProgram;
Expand Down Expand Up @@ -214,8 +214,9 @@
if ( event.keyCode == 38 ) return;
if ( event.keyCode == 39 ) return;
if ( event.keyCode == 40 ) return;

compile();

clearTimeout(compileTimer);
compileTimer = setTimeout(compile, 500);

}, false );

Expand Down

0 comments on commit c76ba31

Please sign in to comment.