mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
update min and max on the NumberControllerBox instance too
min and max were not being updated on the NumberControllerBox when using NumberControllerSlider
This commit is contained in:
parent
a1547d0f21
commit
0027fd73e0
@ -980,7 +980,7 @@ function augmentController(gui, li, controller) {
|
|||||||
const box = new NumberControllerBox(controller.object, controller.property,
|
const box = new NumberControllerBox(controller.object, controller.property,
|
||||||
{ min: controller.__min, max: controller.__max, step: controller.__step });
|
{ 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 pc = controller[method];
|
||||||
const pb = box[method];
|
const pb = box[method];
|
||||||
controller[method] = box[method] = function() {
|
controller[method] = box[method] = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user