mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Fixed a firefox bug
This commit is contained in:
parent
56e0facfc7
commit
dad826da29
@ -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.
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user