public void OnSliderHover(SliderEventData cursorData)
        {
            //dont adjust slider when input source is not on
            if (!cursorData.isInputActive)
            {
                return;
            }

            //get relative location of the hit from our rectTransform
            var locPos = rectTrans.InverseTransformPoint(cursorData.currentHitLocation);

            //move our reference point above the half point removing negative numbers then divide that with the total width to get ther normalized position
            var posShift = (locPos.x + (rectTrans.rect.width / 2)) / rectTrans.rect.width;

            slider.normalizedValue = posShift;
        }
        protected bool SendUpdateEvenForSliderDrag()
        {
            //if (!isUpdating)
            //    return false;
            //     var data = GetBaseEventData();
            //if (!current_LineRenderer.gameObject.activeInHierarchy)
            //    isUpdating = false;

            SliderEventData data;

            data = new SliderEventData(
                EventSystem.current,
                currentCollisionLocation, current_inputSourceGO.activeInHierarchy);

            ExecuteEvents.Execute(eventSystem.currentSelectedGameObject, data, SliderEventData.cursorFollowDelegate);
            return(data.used);
        }