💄 (focus)
This commit is contained in:
@@ -29,7 +29,8 @@ export const useFocus = () => {
|
|||||||
const top = (index + 1) * (element?.clientHeight ?? height.value)
|
const top = (index + 1) * (element?.clientHeight ?? height.value)
|
||||||
scrollToNote(top, hasOneStackedNote)
|
scrollToNote(top, hasOneStackedNote)
|
||||||
} else {
|
} else {
|
||||||
const left = (index + 1) * NOTE_WIDTH
|
const margin = index * 44
|
||||||
|
const left = (index + 1) * NOTE_WIDTH - margin
|
||||||
scrollToNote(left, hasOneStackedNote)
|
scrollToNote(left, hasOneStackedNote)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user