mirror of https://codeberg.org/topola/topola.git
egui: fix sign of Y displayed on the bottom bar
This commit is contained in:
parent
e15e1efe5e
commit
7f46d436af
|
|
@ -13,7 +13,7 @@ impl Bottom {
|
||||||
let latest_pos = transform
|
let latest_pos = transform
|
||||||
.inverse()
|
.inverse()
|
||||||
.transform_pos(ctx.input(|i| i.pointer.latest_pos().unwrap_or_default()));
|
.transform_pos(ctx.input(|i| i.pointer.latest_pos().unwrap_or_default()));
|
||||||
ui.label(format!("x: {} y: {}", latest_pos.x, latest_pos.y));
|
ui.label(format!("x: {} y: {}", latest_pos.x, -latest_pos.y));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue