1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 13:50:04 -04:00

Replace instant with web_time (#3296)

This commit is contained in:
Emil Ernerfeldt
2023-09-04 09:37:35 +02:00
committed by GitHub
parent ea15987ad4
commit 209cbeb030
3 changed files with 16 additions and 13 deletions

View File

@@ -53,7 +53,7 @@ pub struct EventResponse {
/// Handles the integration between egui and winit.
pub struct State {
start_time: instant::Instant,
start_time: web_time::Instant,
egui_input: egui::RawInput,
pointer_pos_in_points: Option<egui::Pos2>,
any_pointer_button_down: bool,
@@ -95,7 +95,7 @@ impl State {
};
Self {
start_time: instant::Instant::now(),
start_time: web_time::Instant::now(),
egui_input,
pointer_pos_in_points: None,
any_pointer_button_down: false,