mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
fix NumberBox not showing step() changes to slider
This commit is contained in:
parent
55e97171cc
commit
922de64459
@ -819,7 +819,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'], function(method) {
|
common.each(['updateDisplay', 'onChange', 'onFinishChange', 'step'], 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