Merge Mouse::Press and Mouse::Move interactions

This commit is contained in:
Héctor Ramón Jiménez 2025-08-28 10:40:43 +02:00
parent bf3ac04498
commit 11928ba668
No known key found for this signature in database
GPG key ID: 4C07CEC81AFA161F

View file

@ -129,6 +129,19 @@ impl Interaction {
None, None,
) )
} }
(
Mouse::Press {
button,
at: Some(press_at),
},
Mouse::Move(move_at),
) if press_at == move_at => (
Self::Mouse(Mouse::Press {
button,
at: Some(press_at),
}),
None,
),
( (
Mouse::Click { Mouse::Click {
button, button,