esnet / esnet/react-timeseries-charts
Ability to disable mouse scroll wheel event handler
- Dominant language
- JavaScript
- Stars
- 876
- Forks
- 279
- PR merge metrics
- No merged PRs in 30d
Description
# 🌈Feature request
**What is this feature?**
Ability to disable mouse scroll wheel event handler when `enableDragZoom` is set.
**How should the feature work?**
Add a prop to the ChartContainer to enable/disable mouse scroll wheel event handler. Could also pass in a function to override default behavior?
Current behavior is to ignore scroll wheel events if and only if `enableDragZoom` and `enablePanZoom` are both falsy. This is good default behavior, but it would be nice if it could be customized.
**Do you have examples or an idea of how it can be implemented?**
Change EventHandler and ChartContainer as described above.
Similar feature discussed here: #303, although the feature described above is a simpler change.
Contributor guide
Assessment
This issue has not been assessed yet.