MCPcopy Create free account
hub / github.com/angular-rust/ux-components / mousedown

Method mousedown

src/elements/textedit.rs:265–273  ·  view source on GitHub ↗
(&self, event: &mut MouseEvent)

Source from the content-addressed store, hash-verified

263 }
264
265 fn mousedown(&self, event: &mut MouseEvent) {
266 // self.base.mousedown(event);
267
268 if self.contains(event.x as f32, event.y as f32) {
269 self.focus();
270 } else {
271 self.unfocus();
272 }
273 }
274
275 fn unfocus(&self) {
276 // self.base.unfocus();

Callers

nothing calls this directly

Calls 3

focusMethod · 0.80
containsMethod · 0.45
unfocusMethod · 0.45

Tested by

no test coverage detected