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() {
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.

View File

@ -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;