Browse Source

Merge pull request #388 from greenfire27/TooltipTimerFix

GUI Tooltip Timer Fix
Peter Robinson 8 years ago
parent
commit
fd1f9fa3b8
1 changed files with 5 additions and 1 deletions
  1. 5 1
      engine/source/gui/guiCanvas.cc

+ 5 - 1
engine/source/gui/guiCanvas.cc

@@ -594,8 +594,12 @@ void GuiCanvas::findMouseControl(const GuiEvent &event)
    GuiControl *controlHit = findHitControl(event.mousePoint);
    if(controlHit != static_cast<GuiControl*>(mMouseControl))
    {
-      if(bool(mMouseControl))
+      if (bool(mMouseControl))
+      {
          mMouseControl->onMouseLeave(event);
+         hoverControlStart = Platform::getRealMilliseconds();
+         hoverPositionSet = false;
+      }
       mMouseControl = controlHit;
       mMouseControl->onMouseEnter(event);
    }