public void OnEndDrag(PointerEventData eventData) { if (null != scrollRectSnap && ScrollDirection.Horizontal == scrollDirection) { scrollRectSnap.OnEndDrag(eventData); } }