LitDev.Engines.GraphEngine._MouseMoveEventScrollY C# (CSharp) Method

_MouseMoveEventScrollY() private method

private _MouseMoveEventScrollY ( Object sender, System.Windows.Input.MouseEventArgs e ) : void
sender Object
e System.Windows.Input.MouseEventArgs
return void
        private void _MouseMoveEventScrollY(Object sender, MouseEventArgs e)
        {
            try
            {
                if (mouseScrollY)
                {
                    Canvas _scrollY = (Canvas)sender;
                    Canvas _graph = (Canvas)_scrollY.Parent;
                    plotData _plotData = getPlotData((string)_graph.Tag);
                    _plotData.shiftY += (e.GetPosition(_scrollY).Y - posScrollY.Y) / _scrollY.ActualHeight * (_plotData.minY - _plotData.maxY);
                    posScrollY = e.GetPosition(_scrollY);
                    plotSeries(_graph, _plotData, eZoom.FALSE, eRescale.FALSE);
                }
            }
            catch (Exception ex)
            {
                Utilities.OnError(Utilities.GetCurrentMethod(), ex);
            }
        }