diff --git a/src/lib/components/modes/treemode/TreeMode.svelte b/src/lib/components/modes/treemode/TreeMode.svelte index 5f7bb1a9..56cded5a 100644 --- a/src/lib/components/modes/treemode/TreeMode.svelte +++ b/src/lib/components/modes/treemode/TreeMode.svelte @@ -1369,12 +1369,16 @@ selection = selection ? getSelectionLeft(json, state, selection, keepAnchorPath, !readOnly) || selection : getInitialSelection(json, state) + + scrollIntoView(selection.focusPath) } if (combo === 'Right' || combo === 'Shift+Right') { event.preventDefault() selection = selection ? getSelectionRight(json, state, selection, keepAnchorPath, !readOnly) || selection : getInitialSelection(json, state) + + scrollIntoView(selection.focusPath) } if (combo === 'Enter' && selection) {