Skip to content

Commit d73749e

Browse files
committed
change scrollTo behaviour to instant to avoid over/undershooting on editor resizing
1 parent 868fc67 commit d73749e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/web/src/ee/features/chat/components/chatThread/referencedSourcesListView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const ReferencedSourcesListViewComponent = ({
6262
setCollapsedDiagramIds((prev) => prev.filter((id) => id !== selectedDiagramId));
6363
const element = document.getElementById(`diagram-panel-${selectedDiagramId}`);
6464
if (element) {
65-
scrollIntoView(element, { scrollMode: 'if-needed', block: 'center', behavior: 'smooth' });
65+
scrollIntoView(element, { scrollMode: 'if-needed', block: 'center', behavior: 'instant' });
6666
}
6767
setHighlightedDiagramId(selectedDiagramId);
6868
const timeout = window.setTimeout(() => setHighlightedDiagramId(undefined), 2000);

0 commit comments

Comments
 (0)