Browse Source

[interact] bug fix: fix drags sometimes being interpreted as clicks

pull/20/head
Emil Ernerfeldt 4 years ago
parent
commit
7cfa792a89
  1. 2
      egui/src/context.rs

2
egui/src/context.rs

@ -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,

Loading…
Cancel
Save