1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

Treat Event::PointerGone as PointerEvent::Released (#4419)

* Closes #4406
* Closes #4418 

If `Event::PointerGone` occurs, it is treated as
`PointerEvent::Released`.
This commit is contained in:
rustbasic
2024-05-11 20:17:58 +09:00
committed by GitHub
parent 11fa9cc7ee
commit 66d2b3ffe4
4 changed files with 12 additions and 8 deletions

View File

@@ -466,23 +466,23 @@ fn response_summary(response: &egui::Response, show_hovers: bool) -> String {
// These are in inverse logical/chonological order, because we show them in the ui that way:
if response.triple_clicked_by(button) {
writeln!(new_info, "Triple-clicked{button_suffix}").ok();
writeln!(new_info, "Triple_clicked_by{button_suffix}").ok();
}
if response.double_clicked_by(button) {
writeln!(new_info, "Double-clicked{button_suffix}").ok();
writeln!(new_info, "Double_clicked_by{button_suffix}").ok();
}
if response.clicked_by(button) {
writeln!(new_info, "Clicked{button_suffix}").ok();
writeln!(new_info, "Clicked_by{button_suffix}").ok();
}
if response.drag_stopped_by(button) {
writeln!(new_info, "Drag stopped{button_suffix}").ok();
writeln!(new_info, "Drag_stopped_by{button_suffix}").ok();
}
if response.dragged_by(button) {
writeln!(new_info, "Dragged{button_suffix}").ok();
writeln!(new_info, "Dragged_by{button_suffix}").ok();
}
if response.drag_started_by(button) {
writeln!(new_info, "Drag started{button_suffix}").ok();
writeln!(new_info, "Drag_started_by{button_suffix}").ok();
}
}