提交 3ba52212 编写于 作者: S SteVen Batten

fix editor drag flicker

上级 3c0630a0
......@@ -831,6 +831,11 @@ export class EditorPart extends Part implements IEditorGroupsService, IEditorGro
parent.appendChild(overlay);
CompositeDragAndDropObserver.INSTANCE.registerTarget(this.element, {
onDragOver: e => {
if (e.eventData.dataTransfer) {
e.eventData.dataTransfer.dropEffect = 'none';
}
},
onDragStart: e => {
toggleClass(overlay, 'visible', true);
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册