(stacked notes) smooth scroll to focused note

This commit is contained in:
Julien Calixte
2021-03-14 21:11:06 +01:00
parent 4df7b95d26
commit 23a310f986
5 changed files with 78 additions and 15 deletions

View File

@@ -1,9 +1,9 @@
import { computed, onMounted } from '@vue/runtime-core'
import { useOverlay } from '@/hooks/useOverlay.hook'
import { NOTE_WIDTH } from '@/constants/note-width'
const BOOKMARK_WIDTH = 2
const NOTE_WIDTH = 620
export const useNoteOverlay = (className: string, index: number) => {
const { x } = useOverlay()