Skip to content

Commit

Permalink
Make map interaction only work when the curser is not over an egui wi…
Browse files Browse the repository at this point in the history
…ndow
  • Loading branch information
Yatekii committed Nov 8, 2024
1 parent 3889954 commit 7b869e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/drawing/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ impl Hud {

pub fn interact(&mut self, event: &winit::event::Event<()>) -> bool {
self.platform.handle_event(event);
self.platform.captures_event(event)
self.platform.captures_event(event) || self.platform.context().is_pointer_over_area()
}
}

Expand Down

0 comments on commit 7b869e1

Please sign in to comment.