Skip to content

Commit

Permalink
fix(core): set scroll boundary to nearest (#6310)
Browse files Browse the repository at this point in the history
* fix(core): set scroll boundary to nearest

* fix(core): add smooth scroll behavior

* fix(sanity): remove smooth behavior

---------

Co-authored-by: RitaDias <anarita151@gmail.com>
  • Loading branch information
ninaandal and RitaDias committed Apr 29, 2024
1 parent 509757c commit 0dae0da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function useScrollSelectionIntoView(scrollElement: HTMLElement | null) {
scrollIntoView(leafEl, {
scrollMode: 'if-needed',
boundary: scrollElement,
block: 'start',
block: 'nearest',
inline: 'nearest',
})
}
Expand Down

0 comments on commit 0dae0da

Please sign in to comment.