GUI Tooltip Timer Fix
This corrects issue by reseting the tooltip timer when the mouse
leaves a mouse element.  This fix was suggested by ParodyGames on
Github.
@@ -595,7 +595,11 @@ void GuiCanvas::findMouseControl(const GuiEvent &event)
if(controlHit != static_cast<GuiControl*>(mMouseControl))
{
if (bool(mMouseControl))
+ {
mMouseControl->onMouseLeave(event);
+ hoverControlStart = Platform::getRealMilliseconds();
+ hoverPositionSet = false;
+ }
mMouseControl = controlHit;
mMouseControl->onMouseEnter(event);
}
