提交 72c8590b 编写于 作者: M Matt Bierner

Make sure zoom status bar selections only effect the active image

Fixes #81799
上级 214ee89d
......@@ -55,7 +55,9 @@ export class Preview extends Disposable {
}));
this._register(zoomStatusBarEntry.onDidChangeScale(e => {
this.webviewEditor.webview.postMessage({ type: 'setScale', scale: e.scale });
if (this._active && !this._isWebviewDispose) {
this.webviewEditor.webview.postMessage({ type: 'setScale', scale: e.scale });
}
}));
this._register(webviewEditor.onDidChangeViewState(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册