add mouse region handler bool for adding the handler above the child

This commit is contained in:
K Simmons
2022-10-24 23:30:35 -07:00
parent ba35536664
commit 70e2951e35
9 changed files with 221 additions and 187 deletions
+2 -4
View File
@@ -485,9 +485,7 @@ impl Presenter {
event_cx.handled = true;
event_cx.with_current_view(valid_region.id().view_id(), {
let region_event = mouse_event.clone();
|cx| {
callback(region_event, cx);
}
|cx| callback(region_event, cx)
});
}
@@ -804,7 +802,7 @@ impl<'a> EventContext<'a> {
self.notify_count
}
pub fn propogate_event(&mut self) {
pub fn propagate_event(&mut self) {
self.handled = false;
}
}