fix: menu bar and flex row event handling

This commit is contained in:
Ashley Wulber 2026-02-22 22:47:28 -05:00
parent 7554540b78
commit 89ee66f251
2 changed files with 28 additions and 27 deletions

View file

@ -810,21 +810,21 @@ fn process_root_events<Message>(
shell: &mut Shell<'_, Message>,
viewport: &Rectangle,
) {
menu_roots
for ((root, t), lo) in menu_roots
.iter_mut()
.zip(&mut tree.children)
.zip(layout.children())
.map(|((root, t), lo)| {
// assert!(t.tag == tree::Tag::stateless());
root.item.update(
&mut t.children[root.index],
event,
lo,
view_cursor,
renderer,
clipboard,
shell,
viewport,
)
});
{
// assert!(t.tag == tree::Tag::stateless());
root.item.update(
&mut t.children[root.index],
event,
lo,
view_cursor,
renderer,
clipboard,
shell,
viewport,
);
}
}