@@ -6,7 +6,7 @@ use re_entity_db::{EntityTree, InstancePath};
66use re_log_types:: { ComponentPath , EntityPath , TimeInt , Timeline } ;
77use re_ui:: SyntaxHighlighting ;
88use re_viewer_context:: {
9- DataQueryId , HoverHighlight , Item , Selection , SpaceViewId , UiVerbosity , ViewerContext ,
9+ DataQueryId , HoverHighlight , Item , SpaceViewId , UiVerbosity , ViewerContext ,
1010} ;
1111
1212use super :: DataUi ;
@@ -330,7 +330,7 @@ pub fn cursor_interact_with_selectable(
330330 let is_item_hovered =
331331 ctx. selection_state ( ) . highlight_for_ui_element ( & item) == HoverHighlight :: Hovered ;
332332
333- select_hovered_on_click ( ctx , & response, item) ;
333+ ctx . select_hovered_on_click ( & response, item) ;
334334 // TODO(andreas): How to deal with shift click for selecting ranges?
335335
336336 if is_item_hovered {
@@ -340,16 +340,6 @@ pub fn cursor_interact_with_selectable(
340340 }
341341}
342342
343- // TODO(andreas): Move elsewhere, this is not directly part of the item_ui.
344- pub fn select_hovered_on_click (
345- ctx : & ViewerContext < ' _ > ,
346- response : & egui:: Response ,
347- selection : impl Into < Selection > ,
348- ) {
349- // TODO: inline everywhere.
350- ctx. select_hovered_on_click ( response, selection) ;
351- }
352-
353343/// Displays the "hover card" (i.e. big tooltip) for an instance or an entity.
354344///
355345/// The entity hover card is displayed the provided instance path is a splat.
0 commit comments