diff --git a/packages/js-draw/src/toolbar/widgets/components/makeSnappedList.ts b/packages/js-draw/src/toolbar/widgets/components/makeSnappedList.ts index 4d73a083..00a88b01 100644 --- a/packages/js-draw/src/toolbar/widgets/components/makeSnappedList.ts +++ b/packages/js-draw/src/toolbar/widgets/components/makeSnappedList.ts @@ -76,7 +76,7 @@ const makeSnappedList = ( const markerIndex = i; marker.onclick = () => { - wrappedItems.get()[markerIndex]?.element?.scrollIntoView({ behavior: 'smooth' }); + wrappedItems.get()[markerIndex]?.element?.scrollIntoView({ block: 'nearest', behavior: 'smooth' }); }; }