Fix bug in Response::clicked_elsewhere
Fixes https://github.com/emilk/egui/issues/205
This commit is contained in:
parent
8f3a25d749
commit
2428763756
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ impl Response {
|
||||||
|
|
||||||
/// `true` if there was a click *outside* this widget this frame.
|
/// `true` if there was a click *outside* this widget this frame.
|
||||||
pub fn clicked_elsewhere(&self) -> bool {
|
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?
|
/// Was the widget enabled?
|
||||||
|
|
Loading…
Reference in a new issue