Fix minor bug in mouse velocity tracking
This commit is contained in:
parent
f1989c39c6
commit
3a3eb5ef5d
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ impl MouseInput {
|
||||||
could_be_click = false;
|
could_be_click = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.pressed {
|
if pressed {
|
||||||
// Start of a drag: we want to track the velocity for during the drag
|
// Start of a drag: we want to track the velocity for during the drag
|
||||||
// and ignore any incoming movement
|
// and ignore any incoming movement
|
||||||
self.pos_tracker.clear();
|
self.pos_tracker.clear();
|
||||||
|
|
Loading…
Reference in a new issue