Control Zooming disabled.

This commit is contained in:
Robin E. R. Davies
2025-07-19 13:26:53 -04:00
parent 6d7f79c6af
commit 71fc534a78
14 changed files with 109 additions and 33 deletions
+4 -1
View File
@@ -96,7 +96,10 @@ const ZoomedUiControl = withTheme(withStyles(
} else {
let uiControl = this.props.controlInfo.uiControl;
let instanceId = this.props.controlInfo.instanceId;
if (instanceId === -1) return 0;
if (instanceId === -2 && uiControl.symbol === "volume_db") {
return this.model.pedalboard.get()?.input_volume_db??0;
}
let pedalboardItem = this.model.pedalboard.get()?.getItem(instanceId);
let value: number = pedalboardItem?.getControlValue(uiControl.symbol) ?? 0;
return value;