未验证 提交 8536df96 编写于 作者: M Matt Bierner 提交者: GitHub

Merge pull request #77121 from connor4312/fix/dragging-with-iframes

fix(sash): dragging being difficult with iframe-containing extensions
......@@ -212,7 +212,13 @@ export class Sash extends Disposable {
return;
}
const iframes = getElementsByTagName('iframe');
// Select both iframes and webviews; internally Electron nests an iframe
// in its <webview> component, but this isn't queryable.
const iframes = [
...getElementsByTagName('iframe'),
...getElementsByTagName('webview'),
];
for (const iframe of iframes) {
iframe.style.pointerEvents = 'none'; // disable mouse events on iframes as long as we drag the sash
}
......@@ -280,7 +286,6 @@ export class Sash extends Disposable {
dispose(disposables);
const iframes = getElementsByTagName('iframe');
for (const iframe of iframes) {
iframe.style.pointerEvents = 'auto';
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册