mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-30 18:27:00 +01:00
ui: a modal's open canvas admits only wheel events, as before
This commit is contained in:
1 parent
a29ccbc1fb
commit
bb7cc548d2
1 file changed
+1
-1
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user