Skip to content

Commit

Permalink
feat: scroll the note marker to the center automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 26, 2024
1 parent c1cd31c commit c5a5fdd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/client/internals/NoteDisplay.vue
Expand Up @@ -96,6 +96,9 @@ function highlightNote() {
e.stopPropagation()
e.stopImmediatePropagation()
})
if (clicks === current)
marker.scrollIntoView({ block: 'center', behavior: 'smooth' })
}
}
Expand Down

0 comments on commit c5a5fdd

Please sign in to comment.