OOGL.GUI.Widgets.ScrollBar.OnMouseDown C# (CSharp) Method

OnMouseDown() public method

public OnMouseDown ( object sender, MouseButtonEventArgs e ) : bool
sender object
e OpenTK.Input.MouseButtonEventArgs
return bool
        public override bool OnMouseDown(object sender, MouseButtonEventArgs e)
        {
            if (screenRectDecreaseValueButton.Contains(e.X, e.Y))
            {
                Value--;
            }

            if (screenRectIncreaseValueButton.Contains(e.X, e.Y))
            {
                Value++;
            }

            if (screenRectValueButton.Contains(e.X, e.Y))
            {
                dragging = true;
            }

            return base.OnMouseDown(sender, e);
        }
    }