req: disable scroll wheel zoom.

Oystein Bjorke 4 years ago 0
This discussion was imported from CodePlex

steunissen wrote at 2011-08-10 08:37:

Again : I love OxyPlot.  Keep it going !

I am now using a plot inside a scroll viewer. Scrolling (with the scroll wheel of my mouse) through my scroll viewer while reaching my plot, interferes with the scroll zoom of the plot, mixing up my plot.

It would be nice if the scroll zoom could be disabled while keeping the zoom by rectangle enabled.

 

Sander.


objo wrote at 2011-08-10 13:24:

set IsZoomEnabled = false on the axes where you want the scroll wheel to be disabled. The property is only available when defining a PlotModel, I will add it to the WPF Axis controls later.

See the "Zooming disabled" example in the ExampleBrowser application (working for both WPF and Silverlight).


steunissen wrote at 2011-08-10 14:57:

IsZoomEnabled=false  disables both the zoom by scrollwheel and zoom by drawing a rectangle on the chart.

I would like to have a property like : ScrollWheelZoomEnabled=false;

 


objo wrote at 2011-08-24 07:34:

I added IsMouseWheelEnabled to the WPF and SL Plot controls. This will enable/disable the mouse wheel for all axes. If you need individual settings for each axis, we need to add a property to the Axis class.


watbywbarif wrote at 2014-05-22 15:45:

It would be excellent if only one axis could be locked. Imagine some long set of data where some value is monitored in time. Desired behavior is to lock value axis, and to zoom time axis so that you can see what happened in some shorter time period. Please add this.
CodePlex