mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Fix #31686. Hover should dismissed if the mouse down is not in the hover widget
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user