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

Method scrollvdown

src/elements/scrollable.rs:181–190  ·  view source on GitHub ↗
(&self, e: &MouseEvent, _: f32)

Source from the content-addressed store, hash-verified

179 //vertical
180
181 fn scrollvdown(&self, e: &MouseEvent, _: f32) {
182 let mut state = self.state.borrow_mut();
183 if !state.visible_v {
184 return;
185 }
186
187 state.drag_v = true;
188 state.drag_y = e.y as f32 - self.scrollv.y();
189 self.scrollv.capture();
190 }
191
192 fn scrollvup(&self, e: &MouseEvent, _: f32) {
193 self.state.borrow_mut().drag_v = false;

Callers

nothing calls this directly

Calls 2

captureMethod · 0.80
yMethod · 0.45

Tested by

no test coverage detected