Beyond_Beyaan.BBScrollBarNoArrows.MouseUp C# (CSharp) Метод

MouseUp() публичный Метод

public MouseUp ( int x, int y ) : bool
x int
y int
Результат bool
        public bool MouseUp(int x, int y)
        {
            if (_isEnabled)
            {
                if (_scrollSelected)
                {
                    _scrollSelected = false;
                    if (!_isSlider)
                    {
                        SetScrollButtonPosition();
                        _scroll.MouseUp(x, y);
                    }
                    return true;
                }
                if (x >= _xPos && x < _xPos + (_isHorizontal ? _scrollBarLength : 5) && _yPos <= y && y < _yPos + (_isHorizontal ? 5 : _scrollBarLength))
                {
                    return true;
                }
            }
            return false;
        }