1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 21:00:03 -04:00

input: keep using the latest known pixels_per_point

This commit is contained in:
Emil Ernerfeldt
2020-08-29 15:15:50 +02:00
parent 3d3b93da8b
commit f1989c39c6

View File

@@ -201,7 +201,7 @@ impl InputState {
mouse,
scroll_delta: new.scroll_delta,
screen_size: new.screen_size,
pixels_per_point: new.pixels_per_point.unwrap_or(1.0),
pixels_per_point: new.pixels_per_point.unwrap_or(self.pixels_per_point),
time: new.time,
unstable_dt,
predicted_dt: 1.0 / 60.0, // TODO: remove this hack