mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-70943 Tooltip animations and buggy visibility are exceedingly frustrating
This commit is contained in:
@@ -579,8 +579,10 @@ public class DaemonListeners implements Disposable {
|
||||
int offset = editor.logicalPositionToOffset(logical);
|
||||
if (editor.offsetToLogicalPosition(offset).column != logical.column) return; // we are in virtual space
|
||||
HighlightInfo info = myDaemonCodeAnalyzer.findHighlightByOffset(editor.getDocument(), offset, false);
|
||||
if (info == null || info.getDescription() == null) return;
|
||||
if (IdeTooltipManager.getInstance().hasCurrent()) return;
|
||||
if (info == null || info.getDescription() == null) {
|
||||
IdeTooltipManager.getInstance().hideCurrent(e.getMouseEvent());
|
||||
return;
|
||||
}
|
||||
DaemonTooltipUtil.showInfoTooltip(info, editor, offset);
|
||||
shown = true;
|
||||
}
|
||||
|
||||
@@ -132,9 +132,7 @@ public class IdeTooltipManager implements ApplicationComponent, AWTEventListener
|
||||
else if (me.getID() == MouseEvent.MOUSE_MOVED) {
|
||||
if (c == myCurrentComponent || c == myQueuedComponent) {
|
||||
if (myCurrentTipUi != null && myCurrentTipUi.wasFadedIn()) {
|
||||
if (hideCurrent(me, null, null)) {
|
||||
maybeShowFor(c, me);
|
||||
}
|
||||
maybeShowFor(c, me);
|
||||
}
|
||||
else {
|
||||
if (!myCurrentTipIsCentered) {
|
||||
|
||||
Reference in New Issue
Block a user