This commit is contained in:
Don McCurdy 2019-01-04 16:26:08 -08:00
parent 0027fd73e0
commit a3085880ce
7 changed files with 7 additions and 7 deletions

View File

@ -2203,7 +2203,7 @@ function augmentController(gui, li, controller) {
});
if (controller instanceof NumberControllerSlider) {
var 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) {
var pc = controller[method];
var pb = box[method];
controller[method] = box[method] = function () {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -2197,7 +2197,7 @@ function augmentController(gui, li, controller) {
});
if (controller instanceof NumberControllerSlider) {
var 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) {
var pc = controller[method];
var pb = box[method];
controller[method] = box[method] = function () {

File diff suppressed because one or more lines are too long

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "dat.gui",
"version": "0.7.3",
"version": "0.7.4",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "dat.gui",
"version": "0.7.3",
"version": "0.7.4",
"description": "A lightweight graphical user interface for changing variables in JavaScript.",
"main": "build/dat.gui.js",
"module": "build/dat.gui.module.js",