Skip to content

Commit

Permalink
Fix missing modifiers update
Browse files Browse the repository at this point in the history
  • Loading branch information
vladbat00 committed Apr 17, 2024
1 parent cfd819e commit 83ef021
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ pub fn process_input_system(
},
});

// If we're not yet tanslating a touch, or we're translating this very
// If we're not yet translating a touch, or we're translating this very
// touch, …
if window_context.ctx.pointer_touch_id.is_none()
|| window_context.ctx.pointer_touch_id.unwrap() == event.id
Expand Down Expand Up @@ -427,6 +427,7 @@ pub fn process_input_system(
}

for mut context in context_params.contexts.iter_mut() {
context.egui_input.modifiers = modifiers;
context.egui_input.time = Some(time.elapsed_seconds_f64());
}

Expand Down

0 comments on commit 83ef021

Please sign in to comment.