1
0
Fork 0
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:
ed 2021-11-30 16:56:06 +00:00
parent 27e75a7059
commit 81df4560dd

View file

@ -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;
}
}