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
+15
View File
@@ -1820,6 +1820,7 @@ export class PiPedalModel //implements PiPedalModel
let result = newPedalboard.deleteItem(instanceId);
if (result !== null) {
newPedalboard.selectedPlugin = result;
this.setModelPedalboard(newPedalboard);
this.updateServerPedalboard();
}
@@ -3505,6 +3506,20 @@ export class PiPedalModel //implements PiPedalModel
this.androidHost?.setScreenOrientation(value as number);
}
}
setPedalboardSelectedPlugin(pluginId: number): void {
let pedalboard = this.pedalboard.get();
if (!pedalboard) {
throw new PiPedalStateError("Pedalboard not loaded.");
}
if (pedalboard.selectedPlugin === pluginId) {
return; // no change.
}
pedalboard.selectedPlugin = pluginId; // naughty, because it doesn't broadcast.
// notify the server.
this.webSocket?.send("setSelectedPedalboardPlugin", { clientId: this.clientId, pluginInstanceId: pluginId });
}
};
let instance: PiPedalModel | undefined = undefined;