MonoGdx.Scene2D.UI.ScrollPane.Hit C# (CSharp) Method

Hit() public method

public Hit ( float x, float y, bool touchable ) : Actor
x float
y float
touchable bool
return Actor
        public override Actor Hit(float x, float y, bool touchable)
        {
            if (x < 0 || x >= Width || y < 0 || y >= Height)
                return null;
            if (IsScrollX && _hScrollBounds.Contains(x, y))
                return this;
            if (IsScrollY && _vScrollBounds.Contains(x, y))
                return this;

            return base.Hit(x, y, touchable);
        }