public void OnEndDrag(PointerEventData eventData) { if (verticalMode) { parentList.GetScrollRect().OnEndDrag(eventData); } else { if (horizontalScrollRect.horizontalNormalizedPosition > DEFAULT_OFFSET) { parentList.RemoveRow(this); } else if (horizontalScrollRect.horizontalNormalizedPosition < DEFAULT_OFFSET && horizontalScrollRect.horizontalNormalizedPosition >= BUTTON_OFFSET) { lerpMode = LERP_TO_BUTTONS; } else if (horizontalScrollRect.horizontalNormalizedPosition < BUTTON_OFFSET) { lerpMode = LERP_TO_RESET; } } }