(&self, e: &MouseEvent, _: f32)
| 223 | } |
| 224 | |
| 225 | fn scrollhmove(&self, e: &MouseEvent, _: f32) { |
| 226 | let mut state = self.state.borrow_mut(); |
| 227 | if state.drag_h && state.visible_h { |
| 228 | let _dest = |
| 229 | (e.x as f32 - state.drag_x).clamp(self.x(), self.right() - self.scrollh.w()); |
| 230 | state.percent_h = (_dest - self.x()) / (self.w() - self.scrollh.w()); |
| 231 | self.update_scroll(); |
| 232 | } //drag_h |
| 233 | } |
| 234 | |
| 235 | //Refresh all relevant values |
| 236 |
nothing calls this directly
no test coverage detected