Skip to content

Commit

Permalink
chore: update egui to 0.23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
apekros committed Oct 5, 2023
1 parent ca1067d commit 7cc61b8
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 11 deletions.
49 changes: 43 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/notan_egui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ notan_macro.workspace = true
log.workspace = true
bytemuck.workspace = true

egui = { version = "0.22.0", features = ["bytemuck"] }
egui = { version = "0.23.0", features = ["bytemuck"] }

[features]
links = []
Expand Down
8 changes: 4 additions & 4 deletions crates/notan_egui/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,22 +255,22 @@ impl Plugin for EguiPlugin {
id: egui::TouchId(*id),
phase: egui::TouchPhase::Start,
pos: (*x, *y).into(),
force: 0.0,
force: Some(0.0),
}),
Event::TouchMove { id, x, y } => self.add_event(egui::Event::Touch {
device_id: egui::TouchDeviceId(0),
id: egui::TouchId(*id),
phase: egui::TouchPhase::Move,
pos: (*x, *y).into(),
force: 0.0,
force: Some(0.0),
}),
Event::TouchEnd { id, x, y } => {
self.add_event(egui::Event::Touch {
device_id: egui::TouchDeviceId(0),
id: egui::TouchId(*id),
phase: egui::TouchPhase::End,
pos: (*x, *y).into(),
force: 0.0,
force: Some(0.0),
});

is_touch_end = true;
Expand All @@ -281,7 +281,7 @@ impl Plugin for EguiPlugin {
id: egui::TouchId(*id),
phase: egui::TouchPhase::Cancel,
pos: (*x, *y).into(),
force: 0.0,
force: Some(0.0),
});
is_touch_end = true;
}
Expand Down

0 comments on commit 7cc61b8

Please sign in to comment.