Skip to content

Commit

Permalink
update min and max on the NumberControllerBox instance too
Browse files Browse the repository at this point in the history
min and max were not being updated on the NumberControllerBox when using NumberControllerSlider
  • Loading branch information
teoxoy authored and donmccurdy committed Jan 5, 2019
1 parent a1547d0 commit 0027fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dat/gui/GUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 0027fd7

Please sign in to comment.