瀏覽代碼

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 年之前
父節點
當前提交
9ab0205362
共有 1 個文件被更改,包括 0 次插入8 次删除
  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)