Skip to content

Commit

Permalink
Update popup.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Sep 20, 2024
1 parent 06f7094 commit 0627fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui/src/containers/popup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub fn show_tooltip_at_pointer<R>(

// Add a small exclusion zone around the pointer to avoid tooltips
// covering what we're hovering over.
let mut exclusion_rect = Rect::from_center_size(pointer_pos, Vec2::splat(24.0));
let mut exclusion_rect = Rect::from_center_size(pointer_pos, Vec2::splat(48.0));

// Keep the left edge of the tooltip in line with the cursor:
exclusion_rect.min.x = pointer_pos.x;
Expand Down

0 comments on commit 0627fc5

Please sign in to comment.