mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Fix bug in Response::clicked_elsewhere
Fixes https://github.com/emilk/egui/issues/205
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user