From 0027fd73e07a3379aa39b14d6f78184050e80ef4 Mon Sep 17 00:00:00 2001 From: Teoxoy <28601907+Teoxoy@users.noreply.github.com> Date: Fri, 4 Jan 2019 21:29:01 +0100 Subject: [PATCH] update min and max on the NumberControllerBox instance too min and max were not being updated on the NumberControllerBox when using NumberControllerSlider --- src/dat/gui/GUI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dat/gui/GUI.js b/src/dat/gui/GUI.js index 2a7a466d..62cca466 100644 --- a/src/dat/gui/GUI.js +++ b/src/dat/gui/GUI.js @@ -980,7 +980,7 @@ function augmentController(gui, li, controller) { const box = new NumberControllerBox(controller.object, controller.property, { min: controller.__min, max: controller.__max, step: controller.__step }); - common.each(['updateDisplay', 'onChange', 'onFinishChange', 'step'], function(method) { + common.each(['updateDisplay', 'onChange', 'onFinishChange', 'step', 'min', 'max'], function(method) { const pc = controller[method]; const pb = box[method]; controller[method] = box[method] = function() {