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