diff --git a/src/dat/controllers/NumberControllerBox.js b/src/dat/controllers/NumberControllerBox.js index edc2761..45fa6e0 100644 --- a/src/dat/controllers/NumberControllerBox.js +++ b/src/dat/controllers/NumberControllerBox.js @@ -64,13 +64,10 @@ class NumberControllerBox extends NumberController { } function onBlur() { - onChange(); + onFinish(); } function onMouseDrag(e) { - // TODO.. why do we need to blur to update input value? - document.activeElement.blur(); - const diff = prevY - e.clientY; _this.setValue(_this.getValue() + diff * _this.__impliedStep); @@ -113,7 +110,6 @@ class NumberControllerBox extends NumberController { } updateDisplay() { - if (dom.isActive(this.__input)) return this; // prevent number from updating if user is trying to manually update this.__input.value = this.__truncationSuspended ? this.getValue() : roundToDecimal(this.getValue(), this.__precision); return super.updateDisplay(); }