mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -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.
|
/// `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?
|
||||||
|
|||||||
Reference in New Issue
Block a user