react-timeseries-charts icon indicating copy to clipboard operation
react-timeseries-charts copied to clipboard

Ability to disable mouse scroll wheel event handler

Open bminer opened this issue 5 years ago • 0 comments

🌈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.

bminer avatar Feb 20 '20 15:02 bminer