diff --git a/docs/demo.js b/docs/demo.js index b1b21b0..a98469b 100644 --- a/docs/demo.js +++ b/docs/demo.js @@ -150,12 +150,13 @@ function FizzyText(message) { var loop = function() { requestAnimationFrame(loop); - + // Don't render if we don't see it. // Would be cleaner if I dynamically acquired the top of the canvas. if (document.body.scrollTop < height + 20) { render(); } + } // This calls the render function every 30 milliseconds. diff --git a/src/DAT/GUI/ControllerString.js b/src/DAT/GUI/ControllerString.js index 3648307..9642e82 100644 --- a/src/DAT/GUI/ControllerString.js +++ b/src/DAT/GUI/ControllerString.js @@ -28,7 +28,7 @@ DAT.GUI.ControllerString = function() { input.addEventListener('mousedown', function(e) { DAT.GUI.makeSelectable(input); - }); + }, false); input.addEventListener('blur', function() { DAT.GUI.supressHotKeys = false;