esnet / esnet/react-timeseries-charts

Ability to disable mouse scroll wheel event handler

Open
#433 0 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.