提交 d7c0fbe2 编写于 作者: R rebornix

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

上级 b0cd70db
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册