MonoGdx.Scene2D.UI.Slider.OnTouchDown C# (CSharp) Method

OnTouchDown() protected method

protected OnTouchDown ( TouchEventArgs e ) : void
e TouchEventArgs
return void
        protected override void OnTouchDown(TouchEventArgs e)
        {
            try {
                if (IsDisabled)
                    return;
                if (_draggingPointer != -1)
                    return;

                Vector2 position = e.GetPosition(this);

                _draggingPointer = e.Pointer;
                CalculatePositionAndValue(position.X, position.Y);

                CaptureTouch(e.Pointer);
                e.Handled = true;
            }
            finally {
                base.OnTouchDown(e);
            }
        }