mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
workaround for #10970
This commit is contained in:
@@ -110,6 +110,18 @@ export class ElectronWindow {
|
||||
})
|
||||
.on([DOM.EventType.DRAG_LEAVE, DOM.EventType.DRAG_END], () => {
|
||||
cleanUp();
|
||||
}).once(DOM.EventType.MOUSE_OVER, () => {
|
||||
// Under some circumstances we have seen reports where the drop overlay is not being
|
||||
// cleaned up and as such the editor area remains under the overlay so that you cannot
|
||||
// type into the editor anymore. This seems related to using VMs and DND via host and
|
||||
// guest OS, though some users also saw it without VMs.
|
||||
// To protect against this issue we always destroy the overlay as soon as we detect a
|
||||
// mouse event over it. The delay is used to guarantee we are not interfering with the
|
||||
// actual DROP event that can also trigger a mouse over event.
|
||||
// See also: https://github.com/Microsoft/vscode/issues/10970
|
||||
setTimeout(() => {
|
||||
cleanUp();
|
||||
}, 300);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user