提交 db057f0c 编写于 作者: B Benjamin Pasero

Tab DnD sometimes gets the wrong editor group as destination (fixes #8242)

上级 26e86f66
......@@ -967,8 +967,10 @@ export class SideBySideEditorControl implements ISideBySideEditorControl, IVerti
// Let a dropped file open inside Code (only if dropped over editor area)
this.toDispose.push(DOM.addDisposableListener(node, DOM.EventType.DROP, (e: DragEvent) => {
DOM.EventHelper.stop(e, true);
onDrop(e, Position.LEFT);
if (e.target === node) {
DOM.EventHelper.stop(e, true);
onDrop(e, Position.LEFT);
}
}));
// Drag over
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册