Group: Forum Members
Last Active: 2 Years Ago
Posts: 17,
Visits: 338
|
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);
|
Group: Forum Members
Last Active: Last Month
Posts: 3,055,
Visits: 4,055
|
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 .
Best Regards, Nevron Support Team
|
Group: Forum Members
Last Active: 2 Years Ago
Posts: 17,
Visits: 338
|
Hi,
This worked thanks.
|