mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
input: keep using the latest known pixels_per_point
This commit is contained in:
@@ -201,7 +201,7 @@ impl InputState {
|
|||||||
mouse,
|
mouse,
|
||||||
scroll_delta: new.scroll_delta,
|
scroll_delta: new.scroll_delta,
|
||||||
screen_size: new.screen_size,
|
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,
|
time: new.time,
|
||||||
unstable_dt,
|
unstable_dt,
|
||||||
predicted_dt: 1.0 / 60.0, // TODO: remove this hack
|
predicted_dt: 1.0 / 60.0, // TODO: remove this hack
|
||||||
|
|||||||
Reference in New Issue
Block a user