input: keep using the latest known pixels_per_point
This commit is contained in:
parent
3d3b93da8b
commit
f1989c39c6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue