allow to modify navigator event handlers
Right now navigator event handlers are hidden, and can't be wrapped. In order to modify them, you have to wrap Scroller.init, and re-register events after modyfing them. So basically you can't redefine one event, you have to redefine all 3 of them, because they share scoped variables (dragOffset, hasDragged).
Please change it. Something like array/map of events, which can be changed before calling Scroller.init would be awesome.
-
AdminPaweł Fus (Admin, Highcharts JS) commented
It's possible since v5.0.7+ See `addMouseEvents` method. Events from prototype (`shadesMousedown`, `handlesMousedown`, `onMouseMove` and `onMouseUp`) are now used directly, which means you can overwrite any of those events. Note that Scrollbar has separate events.