diff --git a/examples/particle_explorer/main.js b/examples/particle_explorer/main.js index bf77c27875..8a989bd66a 100644 --- a/examples/particle_explorer/main.js +++ b/examples/particle_explorer/main.js @@ -177,7 +177,14 @@ function loadGUI() { function addIndividualKeys() { _.each(individualKeys, function(key) { - var controller = gui.add(settings, key); + //temporary patch for not crashing when this goes below 0 + if(key.indexOf('emitRate')>-1){ + var controller = gui.add(settings, key).min(0); + } + else{ + var controller = gui.add(settings, key); + } + //need to fix not being able to input values if constantly listening //.listen(); diff --git a/examples/particle_explorer/particleExplorer.js b/examples/particle_explorer/particleExplorer.js index 1b9b3c5a78..0969d5d162 100644 --- a/examples/particle_explorer/particleExplorer.js +++ b/examples/particle_explorer/particleExplorer.js @@ -152,10 +152,8 @@ SettingsWindow = function() { this.init = function() { Script.update.connect(waitForObjectAuthorization); - _this.webWindow = new WebWindow('Particle Explorer', Script.resolvePath('index.html'), 400, 600, true); + _this.webWindow = new WebWindow('Particle Explorer', Script.resolvePath('index.html'), 400, 600, false); _this.webWindow.eventBridge.webEventReceived.connect(_this.onWebEventReceived); - _this.webWindow.setVisible(false); - _this.webWindow.setVisible(true); }; this.sendData = function(data) {