uimanager(fix): handle edge case where second widget in stack is ignored

This commit is contained in:
Qingping Hou
2016-06-11 12:17:18 -07:00
parent c83036c1bc
commit ce7ae2dfac
2 changed files with 37 additions and 4 deletions

View File

@@ -395,7 +395,7 @@ function UIManager:sendEvent(event)
-- if the event is not consumed, active widgets (from top to bottom) can
-- access it. NOTE: _window_stack can shrink on close event
local checked_widgets = {top_widget}
for i = #self._window_stack-1, 1, -1 do
for i = #self._window_stack, 1, -1 do
local widget = self._window_stack[i]
if checked_widgets[widget] == nil then
if widget.widget.is_always_active then