private void StartDraggingWithValue(float dragStartValue)
 {
     UnityEngine.SliderState state = this.SliderState();
     state.dragStartPos   = this.MousePosition();
     state.dragStartValue = dragStartValue;
     state.isDragging     = true;
 }
        private float OnMouseDrag()
        {
            if (GUIUtility.hotControl != this.id)
            {
                return(this.currentValue);
            }
            UnityEngine.SliderState state = this.SliderState();
            if (!state.isDragging)
            {
                return(this.currentValue);
            }
            GUI.changed = true;
            this.CurrentEvent().Use();
            float num2 = this.MousePosition() - state.dragStartPos;
            float num3 = state.dragStartValue + (num2 / this.ValuesPerPixel());

            return(this.Clamp(num3));
        }