Fix event handing order in ui controller
This commit is contained in:
parent
3ac46bc8dc
commit
61fd45d40c
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include <psemek/ui/impl/controller.hpp>
|
||||
#include <psemek/ui/impl/event_state.hpp>
|
||||
#include <psemek/async/event_loop.hpp>
|
||||
#include <psemek/util/range.hpp>
|
||||
|
||||
namespace psemek::ui::impl
|
||||
{
|
||||
|
|
@ -49,7 +50,7 @@ namespace psemek::ui::impl
|
|||
if (!element)
|
||||
return false;
|
||||
|
||||
for (auto const & child : element->children())
|
||||
for (auto const & child : util::reversed(element->children()))
|
||||
if (on_event_impl(event, child.get()))
|
||||
return true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue