UnityEngine.SliderHandler.OnRepaint C# (CSharp) Method

OnRepaint() private method

private OnRepaint ( ) : float
return float
        private float OnRepaint()
        {
            this.slider.Draw(this.position, GUIContent.none, this.id);
            if (!this.IsEmptySlider())
            {
                this.thumb.Draw(this.ThumbRect(), GUIContent.none, this.id);
            }
            if (((GUIUtility.hotControl != this.id) || !this.position.Contains(this.CurrentEvent().mousePosition)) || this.IsEmptySlider())
            {
                return this.currentValue;
            }
            if (this.ThumbRect().Contains(this.CurrentEvent().mousePosition))
            {
                if (GUI.scrollTroughSide != 0)
                {
                    GUIUtility.hotControl = 0;
                }
                return this.currentValue;
            }
            GUI.InternalRepaintEditorWindow();
            if (SystemClock.now < GUI.nextScrollStepTime)
            {
                return this.currentValue;
            }
            if (this.CurrentScrollTroughSide() != GUI.scrollTroughSide)
            {
                return this.currentValue;
            }
            GUI.nextScrollStepTime = SystemClock.now.AddMilliseconds(30.0);
            if (this.SupportsPageMovements())
            {
                this.SliderState().isDragging = false;
                GUI.changed = true;
                return this.PageMovementValue();
            }
            return this.ClampedCurrentValue();
        }