Scroll to synthesis controls after selecting a source.

After clicking 'Use this' and loading the MIDI, auto-scrolls to the selected source card so Generate is immediately visible.
This commit is contained in:
b1rdmania
2025-12-26 19:34:47 +00:00
parent 5e90b9e5d5
commit 9ad1b00b4e
+8
View File
@@ -464,6 +464,14 @@ class MotifApp {
this.enablePlayerControls();
this.updateStatus('');
// Intent: after selecting "Use this", bring the workbench controls into view.
// Do this after the card is visible and MIDI is loaded.
try {
this.playerSection.scrollIntoView({ behavior: 'smooth', block: 'start' });
} catch {
// ignore
}
} catch (error) {
this.updateStatus(`Load error: ${error instanceof Error ? error.message : 'Unknown error'}`);
}