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

Drag/Drop of folder shows "Move" action (fixes #33462)

上级 4839a81e
......@@ -1257,6 +1257,8 @@ export class EditorGroupsControl extends Themable implements IEditorGroupsContro
});
overlay.on(DOM.EventType.DRAG_OVER, (e: DragEvent) => {
e.dataTransfer.dropEffect = 'copy'; // update the dropEffect, otherwise it would look like a "move" operation
positionOverlay(e, containers.length, index);
});
......
......@@ -167,6 +167,8 @@ export class TabsTitleControl extends TitleControl {
// Drag over
this.toUnbind.push(DOM.addDisposableListener(this.tabsContainer, DOM.EventType.DRAG_OVER, (e: DragEvent) => {
e.dataTransfer.dropEffect = 'copy'; // update the dropEffect, otherwise it would look like a "move" operation
DOM.addClass(this.tabsContainer, 'scroll'); // enable support to scroll while dragging
const target = e.target;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册