make painter not stupid (size ctx is kinda tho)

This commit is contained in:
2025-12-16 00:26:25 -05:00
parent 486ed0ffd7
commit 2183fbd3cb
9 changed files with 217 additions and 212 deletions

View File

@@ -142,7 +142,7 @@ impl<State: HasUi + 'static> HasEvents for State {
id: impl IdLike<Self>,
data: &mut <E::Event as Event>::Data<'_>,
) {
let f = self.ui().data.events.get_type::<E>().run_fn(id);
let f = self.ui().events.get_type::<E>().run_fn(id);
f(EventCtx { state: self, data })
}
}