Fix #31686. Hover should dismissed if the mouse down is not in the hover widget

This commit is contained in:
rebornix
2017-07-28 15:14:27 -07:00
parent b0cd70dbad
commit d7c0fbe2bf
+2 -2
View File
@@ -106,7 +106,7 @@ export class ModesHoverController implements editorCommon.IEditorContribution {
var targetType = mouseEvent.target.type;
var stopKey = platform.isMacintosh ? 'metaKey' : 'ctrlKey';
if (this._isMouseDown || (this._hoverClicked && this._contentWidget.isColorPickerVisible())) {
if (this._isMouseDown && this._hoverClicked && this._contentWidget.isColorPickerVisible()) {
return;
}
@@ -139,7 +139,7 @@ export class ModesHoverController implements editorCommon.IEditorContribution {
}
private _hideWidgets(): void {
if (this._isMouseDown) {
if (this._isMouseDown && this._hoverClicked && this._contentWidget.isColorPickerVisible()) {
return;
}