1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

egui_web: Fix use of egui on devices with both touch and mouse (#654)

This commit is contained in:
Emil Ernerfeldt
2021-08-28 08:37:07 +02:00
committed by GitHub
parent c6a0db8602
commit 9bc95289cc
3 changed files with 49 additions and 63 deletions

View File

@@ -78,9 +78,6 @@ impl WebBackend {
/// Data gathered between frames.
#[derive(Default)]
pub struct WebInput {
/// Is this a touch screen? If so, we ignore mouse events.
pub is_touch: bool,
/// Required because we don't get a position on touched
pub latest_touch_pos: Option<egui::Pos2>,