Merge pull request #114854 from susiwen8/hover-scroll

Fix: show hover when mouse control hover scroll
This commit is contained in:
Alexandru Dima
2021-01-25 22:21:29 +01:00
committed by GitHub
2 changed files with 3 additions and 5 deletions
+2 -1
View File
@@ -139,7 +139,7 @@ export class ModesHoverController implements IEditorContribution {
private _onEditorMouseMove(mouseEvent: IEditorMouseEvent): void {
let targetType = mouseEvent.target.type;
if (this._isMouseDown && this._hoverClicked && this._contentWidget?.isColorPickerVisible()) {
if (this._isMouseDown && this._hoverClicked) {
return;
}
@@ -219,6 +219,7 @@ export class ModesHoverController implements IEditorContribution {
return;
}
this._hoverClicked = false;
this._glyphWidget?.hide();
this._contentWidget?.hide();
}
@@ -445,10 +445,7 @@ export class ModesContentHoverWidget extends Widget implements IContentWidget, I
}
public isColorPickerVisible(): boolean {
if (this._colorPicker) {
return true;
}
return false;
return !!this._colorPicker;
}
public onContentsChanged(): void {