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

Method scrollhdown

src/elements/scroll_view.rs:209–218  ·  view source on GitHub ↗
(&self, e: &MouseEvent, _: f32)

Source from the content-addressed store, hash-verified

207 //horizontal
208
209 fn scrollhdown(&self, e: &MouseEvent, _: f32) {
210 let mut state = self.state.borrow_mut();
211 if !state.visible_h {
212 return;
213 }
214
215 state.drag_h = true;
216 state.drag_x = e.x as f32 - self.scrollh.x();
217 self.scrollh.capture();
218 }
219
220 fn scrollhup(&self, e: &MouseEvent, _: f32) {
221 self.state.borrow_mut().drag_h = false;

Callers

nothing calls this directly

Calls 2

captureMethod · 0.80
xMethod · 0.45

Tested by

no test coverage detected