mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Merge pull request #114854 from susiwen8/hover-scroll
Fix: show hover when mouse control hover scroll
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user