mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-26 10:16:01 +01:00
Merge pull request #8746 from f111fei/patch-9
Fix did not removed css class dropfeedback
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user