From bd540ac4b7e1b0d787bcad07675020ff1e0987b5 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sun, 21 Mar 2021 12:02:54 +0100 Subject: [PATCH] =?UTF-8?q?:bug:=20(note=20focus)=20note=20is=20now=20full?= =?UTF-8?q?=20displayed=20on=20link=20pres=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useFocus.hook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useFocus.hook.ts b/src/hooks/useFocus.hook.ts index 9dee770..f51deb3 100644 --- a/src/hooks/useFocus.hook.ts +++ b/src/hooks/useFocus.hook.ts @@ -21,7 +21,7 @@ export const useFocus = () => { const top = (index + 1) * (element?.clientHeight ?? height.value) scrollToNote(top) } else { - const left = index * NOTE_WIDTH + const left = (index + 1) * NOTE_WIDTH scrollToNote(left) } })