Method
scrollvdown
(&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
Tested by
no test coverage detected