Skip to content

Commit

Permalink
Fix wrong cursor icon when hovering a context-menu in the time panel (#…
Browse files Browse the repository at this point in the history
…8119)

* [x] trust me
  • Loading branch information
emilk authored Nov 13, 2024
1 parent d85280c commit 2f17c4d
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit 2f17c4d

Please sign in to comment.