Merge Mouse::Press and Mouse::Move interactions
This commit is contained in:
parent
bf3ac04498
commit
11928ba668
1 changed files with 13 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue