Răsfoiți Sursa

Fixed Error with GuiWindow

The recently added code to cause input events to bubble up through the gui control tree caused an error with the GuiWindow which apparently wanted to bubble its touch events back down. Naturally this created an infinite loop, which this check-in removes.
Peter Robinson 3 ani în urmă
părinte
comite
9ab0205362
1 a modificat fișierele cu 0 adăugiri și 8 ștergeri
  1. 0 8
      engine/source/gui/containers/guiWindowCtrl.cc

+ 0 - 8
engine/source/gui/containers/guiWindowCtrl.cc

@@ -247,14 +247,6 @@ void GuiWindowCtrl::onTouchDown(const GuiEvent &event)
    {
       mouseLock();
    }
-   else
-   {
-
-      GuiControl *ctrl = findHitControl(localPoint);
-      if (ctrl && ctrl != this)
-         ctrl->onTouchDown(event);
-
-   }
 }
 
 void GuiWindowCtrl::onTouchDragged(const GuiEvent &event)