From 9ad1b00b4e9b014e5cfccfa4c8b5436cc23aad6a Mon Sep 17 00:00:00 2001 From: b1rdmania <102524336+b1rdmania@users.noreply.github.com> Date: Fri, 26 Dec 2025 19:34:47 +0000 Subject: [PATCH] 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. --- src/main.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.ts b/src/main.ts index e6f3918..b06de8e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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'}`); }