mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
uimanager(fix): handle edge case where second widget in stack is ignored
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user