Browse Source

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 years ago
parent
commit
9ab0205362
1 changed files with 0 additions and 8 deletions
  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();
       mouseLock();
    }
    }
-   else
-   {
-
-      GuiControl *ctrl = findHitControl(localPoint);
-      if (ctrl && ctrl != this)
-         ctrl->onTouchDown(event);
-
-   }
 }
 }
 
 
 void GuiWindowCtrl::onTouchDragged(const GuiEvent &event)
 void GuiWindowCtrl::onTouchDragged(const GuiEvent &event)