MCPcopy Create free account
hub / github.com/GCWing/BitFun / update_mouse_selection

Method update_mouse_selection

src/apps/cli/src/ui/chat/mouse.rs:192–209  ·  view source on GitHub ↗
(&mut self, column: u16, row: u16)

Source from the content-addressed store, hash-verified

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,

Callers 2

handle_non_key_eventMethod · 0.80

Calls 1

Tested by

no test coverage detected