mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 08:18:12 +08:00
Fix crash and clean up frontend -> backend input handling code (#1770)
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user