[interact] bug fix: fix drags sometimes being interpreted as clicks
This commit is contained in:
parent
d07132cc13
commit
7cfa792a89
1 changed files with 1 additions and 1 deletions
|
@ -426,7 +426,7 @@ impl Context {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if self.input.mouse.released {
|
} else if self.input.mouse.released {
|
||||||
let clicked = hovered && active;
|
let clicked = hovered && active && self.input.mouse.could_be_click;
|
||||||
InteractInfo {
|
InteractInfo {
|
||||||
sense,
|
sense,
|
||||||
rect,
|
rect,
|
||||||
|
|
Loading…
Reference in a new issue