mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Allow updates to OptionController while listening. fix #101
This commit is contained in:
parent
f53cfa5215
commit
ca19030081
@ -107,7 +107,7 @@ class NumberControllerBox extends NumberController {
|
||||
}
|
||||
|
||||
updateDisplay() {
|
||||
if (dom.isActive(this.__input)) return null; // prevent number from update if user is trying to manually update
|
||||
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();
|
||||
}
|
||||
|
@ -78,6 +78,7 @@ class OptionController extends Controller {
|
||||
}
|
||||
|
||||
updateDisplay() {
|
||||
if (dom.isActive(this.__select)) return this; // prevent number from updating if user is trying to manually update
|
||||
this.__select.value = this.getValue();
|
||||
return super.updateDisplay();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user