mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-26 16:02:23 +03:00
parent
d2cead2a82
commit
32a9915d2e
@ -84,7 +84,7 @@ impl State<App> for Viewer {
|
|||||||
self.hovering_on_bldg.as_ref().map(|h| ID::Building(h.id));
|
self.hovering_on_bldg.as_ref().map(|h| ID::Building(h.id));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ctx.input.left_mouse_button_pressed() {
|
if ctx.normal_left_click() {
|
||||||
if let Some(ref hover) = self.hovering_on_bldg {
|
if let Some(ref hover) = self.hovering_on_bldg {
|
||||||
let start = app.primary.map.get_b(hover.id);
|
let start = app.primary.map.get_b(hover.id);
|
||||||
self.isochrone = Isochrone::new(ctx, app, start.id, self.isochrone.constraints);
|
self.isochrone = Isochrone::new(ctx, app, start.id, self.isochrone.constraints);
|
||||||
|
Loading…
Reference in New Issue
Block a user