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 7, 2024
1 parent ed02542 commit c474d6b
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);
}
}
for &widget in &clicked {
while let Some(widget) = clicked {
paint_widget_id(widget, "clicked", Color32::RED);
}
for &widget in &dragged {
while 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);
}
}
for widget in &click {
while let Some(widget) = &click {
paint_widget(widget, "click", Color32::RED);
}
for widget in &drag {
while let Some(widget) = &drag {
paint_widget(widget, "drag", Color32::GREEN);
}
}
Expand Down

0 comments on commit c474d6b

Please sign in to comment.