Use any_click() instead of any_pressed() in check
@@ -335,7 +335,7 @@ pub fn color_edit_button_hsva(ui: &mut Ui, hsva: &mut Hsva, alpha: Alpha) -> Res
});
if !button_response.clicked() {
- let clicked_outside = ui.input().pointer.any_pressed() && !area_response.hovered();
+ let clicked_outside = ui.input().pointer.any_click() && !area_response.hovered();
if clicked_outside || ui.input().key_pressed(Key::Escape) {
ui.memory().close_popup();
}
