Browse Source

Fix bug in Response::clicked_elsewhere

Fixes https://github.com/emilk/egui/issues/205
pull/214/head
Emil Ernerfeldt 4 years ago
parent
commit
2428763756
  1. 2
      egui/src/response.rs

2
egui/src/response.rs

@ -135,7 +135,7 @@ impl Response {
/// `true` if there was a click *outside* this widget this frame.
pub fn clicked_elsewhere(&self) -> bool {
!self.hovered && self.ctx.input().pointer.any_pressed()
!self.clicked() && self.ctx.input().pointer.any_click()
}
/// Was the widget enabled?

Loading…
Cancel
Save