Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong cursor icon when hovering a context-menu in the time panel #8119

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions crates/viewer/re_time_panel/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1426,8 +1426,10 @@ fn time_marker_ui(

// "click here to view time here"
if let Some(pointer_pos) = pointer_pos {
let is_pointer_in_time_area_rect = time_area_painter.clip_rect().contains(pointer_pos);
let is_pointer_in_timeline_rect = timeline_rect.contains(pointer_pos);
let is_pointer_in_time_area_rect =
ui.ui_contains_pointer() && time_area_painter.clip_rect().contains(pointer_pos);
let is_pointer_in_timeline_rect =
ui.ui_contains_pointer() && timeline_rect.contains(pointer_pos);

// Show preview?
if !is_hovering_time_cursor
Expand Down
Loading