提交 ec29889b 编写于 作者: B Benjamin Pasero 提交者: GitHub

Merge pull request #8746 from f111fei/patch-9

Fix did not removed css class dropfeedback
......@@ -984,20 +984,27 @@ export class SideBySideEditorControl implements ISideBySideEditorControl, IVerti
if (e.target === node) {
DOM.EventHelper.stop(e, true);
onDrop(e, Position.LEFT);
} else {
DOM.removeClass(node, 'dropfeedback');
}
}));
// Drag over
this.toDispose.push(DOM.addDisposableListener(node, DOM.EventType.DRAG_OVER, (e: DragEvent) => {
DOM.addClass(node, 'dropfeedback');
if (e.target === node) {
DOM.addClass(node, 'dropfeedback');
}
const target = <HTMLElement>e.target;
if (target) {
if (overlay && target.id !== overlayId) {
destroyOverlay(); // somehow we managed to move the mouse quickly out of the current overlay, so destroy it
}
createOverlay(target);
if (overlay) {
DOM.addClass(node, 'dropfeedback');
}
}
}));
......@@ -1655,4 +1662,4 @@ export class SideBySideEditorControl implements ISideBySideEditorControl, IVerti
this._onGroupFocusChanged.dispose();
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册