remove smooth behavior from scroll for code cells (#20905)

This commit is contained in:
Barbara Valdez
2022-10-20 17:14:52 -07:00
committed by GitHub
parent 5942980300
commit 1ac141b381

View File

@@ -193,7 +193,7 @@ export class NotebookFindDecorations implements IDisposable {
// expand the cell if it's collapsed and scroll into view
match.cell.isCollapsed = false;
if (matchEditor) {
matchEditor.getContainer().scrollIntoView({ behavior: 'smooth', block: 'nearest' });
matchEditor.getContainer().scrollIntoView({ block: 'nearest' });
matchEditor.getControl().revealRangeInCenterIfOutsideViewport(match, ScrollType.Smooth);
}
}