Avoid scrollTop call in hot code

This seems to have been added in f6d5abf but it's not clear why, scroll APIs
seem to work fine without it and using a DOM API here is causing slowness
This commit is contained in:
Daniel Imms
2021-09-01 06:44:34 -07:00
parent ffef3dba00
commit 263c6d75bf
-6
View File
@@ -143,12 +143,6 @@ export class Viewport extends Disposable implements IViewport {
return;
}
// If element's scroll top changed, this can happen when hiding the element
if (this._lastScrollTop !== this._viewportElement.scrollTop) {
this._refresh(immediate);
return;
}
// If row height changed
if (this._renderDimensions.scaledCellHeight !== this._currentScaledCellHeight) {
this._refresh(immediate);