From 3a3eb5ef5d723384e792122617831601512165af Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sat, 29 Aug 2020 15:16:51 +0200 Subject: [PATCH] Fix minor bug in mouse velocity tracking --- egui/src/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egui/src/input.rs b/egui/src/input.rs index 191ee49c..8b09da7d 100644 --- a/egui/src/input.rs +++ b/egui/src/input.rs @@ -290,7 +290,7 @@ impl MouseInput { could_be_click = false; } - if self.pressed { + if pressed { // Start of a drag: we want to track the velocity for during the drag // and ignore any incoming movement self.pos_tracker.clear();