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:
@@ -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()),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user