1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Change force to be Option<f32> instead of f32 (#3240)

This commit is contained in:
lucasmerlin
2023-08-12 13:50:40 +02:00
committed by GitHub
parent 6633ecce64
commit 1036cb1f7d
4 changed files with 11 additions and 11 deletions

View File

@@ -68,7 +68,7 @@ pub fn push_touches(runner: &mut AppRunner, phase: egui::TouchPhase, event: &web
id: egui::TouchId::from(touch.identifier()),
phase,
pos: pos_from_touch(canvas_origin, &touch),
force: touch.force(),
force: Some(touch.force()),
});
}
}