ui: a modal's open canvas admits only wheel events, as before

This commit is contained in:
dotCooCoo committed 2026-11-28 20:23:52 -08:00
1 parent a29ccbc1fb
commit bb7cc548d2
1 file changed
+1 -1
+1 -1
View File
@@ -151,7 +151,7 @@ impl Hole {
pub(crate) fn admits(&self, event: &Event, pointer: Option<Pos2>) -> bool {
match event {
Event::PointerButton { pos, button, pressed: true, modifiers } => self.admits_press(*button, modifiers, *pos),
Event::MouseWheel { .. } | Event::Zoom(_) => pointer.is_some_and(|at| self.answers(at)),
Event::MouseWheel { .. } => pointer.is_some_and(|at| self.answers(at)),
_ => false,
}
}