mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-27 16:36:02 +03:00
cant start dragging on top of covered area
This commit is contained in:
parent
5d28acd1af
commit
92ce83dfdd
@ -80,7 +80,8 @@ impl Canvas {
|
||||
self.left_mouse_drag_from = Some(pt);
|
||||
}
|
||||
}
|
||||
if input.left_mouse_button_pressed() {
|
||||
// Can't start dragging on top of covered area
|
||||
if input.left_mouse_button_pressed() && self.get_cursor_in_map_space().is_some() {
|
||||
self.left_mouse_drag_from = Some(self.get_cursor_in_screen_space());
|
||||
}
|
||||
if input.left_mouse_button_released() {
|
||||
|
Loading…
Reference in New Issue
Block a user