Fix crash and clean up frontend -> backend input handling code (#1770)

This commit is contained in:
Keavon Chambers
2024-06-03 01:09:22 -07:00
committed by GitHub
parent 72ccba09af
commit 449729f1e1
5 changed files with 47 additions and 53 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ impl EditorTestUtils for Editor {
}
fn move_mouse(&mut self, x: f64, y: f64) {
let mut editor_mouse_state = EditorMouseState::new();
let mut editor_mouse_state = EditorMouseState::default();
editor_mouse_state.editor_position = ViewportPosition::new(x, y);
let modifier_keys = ModifierKeys::default();
self.input(InputPreprocessorMessage::PointerMove { editor_mouse_state, modifier_keys });