diff --git a/src/hooks/useFocus.hook.ts b/src/hooks/useFocus.hook.ts index 8973723..01daef4 100644 --- a/src/hooks/useFocus.hook.ts +++ b/src/hooks/useFocus.hook.ts @@ -29,7 +29,8 @@ export const useFocus = () => { const top = (index + 1) * (element?.clientHeight ?? height.value) scrollToNote(top, hasOneStackedNote) } else { - const left = (index + 1) * NOTE_WIDTH + const margin = index * 44 + const left = (index + 1) * NOTE_WIDTH - margin scrollToNote(left, hasOneStackedNote) } })