fix NumberBox not showing step() changes to slider

This commit is contained in:
Jeff Nusz 2016-08-17 16:28:11 -07:00
parent 55e97171cc
commit 922de64459

View File

@ -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() {