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:
@@ -464,6 +464,14 @@ class MotifApp {
|
|||||||
this.enablePlayerControls();
|
this.enablePlayerControls();
|
||||||
this.updateStatus('');
|
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) {
|
} catch (error) {
|
||||||
this.updateStatus(`Load error: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
this.updateStatus(`Load error: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user