ZForge.Controls.TreeViewAdv.Tree.TreeViewAdv.OnMouseWheel C# (CSharp) Method

OnMouseWheel() protected method

protected OnMouseWheel ( MouseEventArgs e ) : void
e System.Windows.Forms.MouseEventArgs
return void
        protected override void OnMouseWheel(MouseEventArgs e)
        {
            _search.EndSearch();
            if (SystemInformation.MouseWheelScrollLines > 0)
            {
                int lines = e.Delta / 120 * SystemInformation.MouseWheelScrollLines;
                int newValue = _vScrollBar.Value - lines;
                newValue = Math.Min(_vScrollBar.Maximum - _vScrollBar.LargeChange + 1, newValue);
                newValue = Math.Min(_vScrollBar.Maximum, newValue);
                _vScrollBar.Value = Math.Max(_vScrollBar.Minimum, newValue);
            }
            base.OnMouseWheel(e);
        }
TreeViewAdv