(&mut self, column: u16, row: u16)
| 190 | } |
| 191 | |
| 192 | pub fn update_mouse_selection(&mut self, column: u16, row: u16) -> bool { |
| 193 | if self.selection_mouse_down.is_none() { |
| 194 | return false; |
| 195 | } |
| 196 | |
| 197 | let Some(point) = self.map_mouse_to_selection_point(column, row, true) else { |
| 198 | return false; |
| 199 | }; |
| 200 | |
| 201 | if let Some((origin_x, origin_y)) = self.selection_mouse_down { |
| 202 | if origin_x != column || origin_y != row { |
| 203 | self.selection_dragged = true; |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | self.selection_focus = Some(point); |
| 208 | true |
| 209 | } |
| 210 | |
| 211 | pub fn complete_mouse_selection_or_click( |
| 212 | &mut self, |
no test coverage detected