💄 (focus)

This commit is contained in:
2021-04-19 23:21:37 +02:00
parent 35503601f3
commit 76df48e2e7

View File

@@ -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)
}
})