egui: fix sign of Y displayed on the bottom bar

This commit is contained in:
Mikolaj Wielgus 2024-06-18 01:56:48 +02:00
parent e15e1efe5e
commit 7f46d436af
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ impl Bottom {
let latest_pos = transform
.inverse()
.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));
});
}
}