Fixed a firefox bug

This commit is contained in:
George Michael Brower 2011-04-19 20:00:12 -07:00
parent 56e0facfc7
commit dad826da29
2 changed files with 3 additions and 2 deletions

View File

@ -150,12 +150,13 @@ function FizzyText(message) {
var loop = function() { var loop = function() {
requestAnimationFrame(loop); requestAnimationFrame(loop);
// Don't render if we don't see it. // Don't render if we don't see it.
// Would be cleaner if I dynamically acquired the top of the canvas. // Would be cleaner if I dynamically acquired the top of the canvas.
if (document.body.scrollTop < height + 20) { if (document.body.scrollTop < height + 20) {
render(); render();
} }
} }
// This calls the render function every 30 milliseconds. // This calls the render function every 30 milliseconds.

View File

@ -28,7 +28,7 @@ DAT.GUI.ControllerString = function() {
input.addEventListener('mousedown', function(e) { input.addEventListener('mousedown', function(e) {
DAT.GUI.makeSelectable(input); DAT.GUI.makeSelectable(input);
}); }, false);
input.addEventListener('blur', function() { input.addEventListener('blur', function() {
DAT.GUI.supressHotKeys = false; DAT.GUI.supressHotKeys = false;