From dad826da291f2734555a4db9a0b6d0b588d3f080 Mon Sep 17 00:00:00 2001 From: George Michael Brower Date: Tue, 19 Apr 2011 20:00:12 -0700 Subject: [PATCH] Fixed a firefox bug --- docs/demo.js | 3 ++- src/DAT/GUI/ControllerString.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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;