mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-27 02:20:05 +00:00
Tooltip: Fix bug where tip would not be updated for new components
This commit is contained in:
parent
27e75a7059
commit
81df4560dd
1 changed files with 3 additions and 3 deletions
|
|
@ -211,9 +211,6 @@ void TooltipWindow::timerCallback()
|
|||
{
|
||||
const auto newTip = newComp != nullptr ? getTipFor (*newComp) : String();
|
||||
|
||||
lastComponentUnderMouse = newComp;
|
||||
lastTipUnderMouse = newTip;
|
||||
|
||||
const auto mousePos = mouseSource.getScreenPosition();
|
||||
const auto mouseMovedQuickly = (mousePos.getDistanceFrom (lastMousePos) > 12);
|
||||
lastMousePos = mousePos;
|
||||
|
|
@ -249,6 +246,9 @@ void TooltipWindow::timerCallback()
|
|||
showTip();
|
||||
}
|
||||
}
|
||||
|
||||
lastComponentUnderMouse = newComp;
|
||||
lastTipUnderMouse = newTip;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue