Skip to content

Commit

Permalink
fix: Fix scrolling image tool items into view also significantly scro…
Browse files Browse the repository at this point in the history
…lls a container document
  • Loading branch information
personalizedrefrigerator committed May 16, 2024
1 parent 2c971f6 commit 2db62b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const makeSnappedList = <DataType> (

const markerIndex = i;
marker.onclick = () => {
wrappedItems.get()[markerIndex]?.element?.scrollIntoView({ behavior: 'smooth' });
wrappedItems.get()[markerIndex]?.element?.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
};
}

Expand Down

0 comments on commit 2db62b2

Please sign in to comment.