(
&mut self,
action: ClickAction,
widget: &PlotWidget,
publish_hover_pick: &mut Option<HoverPickEvent>,
)
| 831 | } |
| 832 | |
| 833 | fn update_axis_links(&mut self) { |
| 834 | if let Some(ref link) = self.x_axis_link { |
| 835 | link.set(self.camera.position.x, self.camera.half_extents.x); |
| 836 | self.x_link_version = link.version(); |
| 837 | } |
| 838 | if let Some(ref link) = self.y_axis_link { |
| 839 | link.set(self.camera.position.y, self.camera.half_extents.y); |
| 840 | self.y_link_version = link.version(); |
| 841 | } |
| 842 | } |
| 843 | |
| 844 | fn is_double_click(&self, button: mouse::Button) -> bool { |
| 845 | self.last_click_button == Some(button) |
| 846 | && self |
| 847 | .last_click_time |
| 848 | .is_some_and(|prev| Instant::now().duration_since(prev).as_millis() < 350) |
| 849 | } |
| 850 | |
| 851 | fn handle_mouse_click( |
| 852 | &mut self, |
| 853 | button: mouse::Button, |
| 854 | widget: &PlotWidget, |
| 855 | publish_hover_pick: &mut Option<HoverPickEvent>, |
| 856 | ) -> bool { |
no test coverage detected