提交 36ec8ea1 编写于 作者: A Alex Dima

Ensure the diff overview slider has the correct size on the first diff computation

上级 2b0bb057
......@@ -372,7 +372,7 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
if (this._isHandlingScrollEvent) {
return;
}
if (!e.scrollTopChanged && !e.scrollLeftChanged) {
if (!e.scrollTopChanged && !e.scrollLeftChanged && !e.scrollHeightChanged) {
return;
}
this._isHandlingScrollEvent = true;
......@@ -403,7 +403,7 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
if (this._isHandlingScrollEvent) {
return;
}
if (!e.scrollTopChanged && !e.scrollLeftChanged) {
if (!e.scrollTopChanged && !e.scrollLeftChanged && !e.scrollHeightChanged) {
return;
}
this._isHandlingScrollEvent = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册