mirror of
https://github.com/storytold/egui.git
synced 2026-11-30 10:16:24 +01:00
[interact] bug fix: fix drags sometimes being interpreted as clicks
This commit is contained in:
1 parent
d07132cc13
commit
7cfa792a89
1 file changed
+1
-1
+1
-1
@@ -426,7 +426,7 @@ impl Context {
|
||||
}
|
||||
}
|
||||
} else if self.input.mouse.released {
|
||||
let clicked = hovered && active;
|
||||
let clicked = hovered && active && self.input.mouse.could_be_click;
|
||||
InteractInfo {
|
||||
sense,
|
||||
rect,
|
||||
|
||||
Reference in new issue
Block a user