public override void OnEndDrag(PointerEventData data) { if (isDragging) { Debug.Log("hello"); SliderHelper sh = this.GetComponent <SliderHelper>(); sh.GetHeight(); } isDragging = false; }