By Stuart Jones - 6 Years Ago
|
Hi,
Following an upgrade 18.7.18.12 to 18.8.17.1 mouse wheel zoom has stopped working.
This is how we create the NDataZoomTool:
var dataZoomTool = new NDataZoomTool(); dataZoomTool.WheelZoomAtMouse = true; dataZoomTool.WheelZoomFactor = 0.2; dataZoomTool.BeginDragMouseCommand = new NMouseCommand(MouseAction.Wheel, MouseButton.Middle, 0); dataZoomTool.EndDragMouseCommand = new NMouseCommand(MouseAction.None, MouseButton.None, 0); addToolToNevronControl(dataZoomTool);
|
By Nevron Support - 6 Years Ago
|
Hi Stuart, You need to change the BeginDragMouseCommand to: = new NMouseCommand(MouseAction.Wheel, MouseButton.None, 0); We tested with: NDataZoomTool dataZoomTool = new NDataZoomTool(); dataZoomTool.WheelZoomAtMouse = true; dataZoomTool.WheelZoomFactor = 0.2; dataZoomTool.BeginDragMouseCommand = new NMouseCommand(MouseAction.Wheel, MouseButton.None, 0); dataZoomTool.EndDragMouseCommand = new NMouseCommand(MouseAction.None, MouseButton.None, 0); nChartControl1.Controller.Tools.Add(dataZoomTool); and the control was working properly. The change probably occurred when we implemented modifier keys to the mouse commands. Let us know if you meet any problems.
|
By Stuart Jones - 6 Years Ago
|
Hi,
This worked thanks.
|
|