Skip to content

Commit

Permalink
Update context.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Aug 26, 2024
1 parent c474d6b commit eb7b280
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/egui/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1926,10 +1926,10 @@ impl Context {
paint_widget_id(widget, "hovered", Color32::WHITE);
}
}
while let Some(widget) = clicked {
if let Some(widget) = clicked {
paint_widget_id(widget, "clicked", Color32::RED);
}
while let Some(widget) = dragged {
if let Some(widget) = dragged {
paint_widget_id(widget, "dragged", Color32::GREEN);
}
}
Expand All @@ -1948,10 +1948,10 @@ impl Context {
paint_widget(widget, "contains_pointer", Color32::BLUE);
}
}
while let Some(widget) = &click {
if let Some(widget) = &click {
paint_widget(widget, "click", Color32::RED);
}
while let Some(widget) = &drag {
if let Some(widget) = &drag {
paint_widget(widget, "drag", Color32::GREEN);
}
}
Expand Down

0 comments on commit eb7b280

Please sign in to comment.