Draft Emulator in iced_test

This commit is contained in:
Héctor Ramón Jiménez 2025-05-31 04:34:54 +02:00
parent 921467b5be
commit 16556b51bc
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
12 changed files with 466 additions and 47 deletions

View file

@ -68,8 +68,7 @@ where
mouse::Event::ButtonPressed(_)
| mouse::Event::ButtonReleased(_)
| mouse::Event::WheelScrolled { .. } => {
shell
.publish(on_event(Event::Mouse(event.clone())));
shell.publish(on_event(Event::Mouse(*event)));
}
mouse::Event::CursorMoved { position } => {
shell.publish(on_event(Event::Mouse(