OnEndDrag() public method

public OnEndDrag ( PointerEventData eventData ) : void
eventData UnityEngine.EventSystems.PointerEventData
return void
Esempio n. 1
0
 static public int OnEndDrag(IntPtr l)
 {
     try {
         UnityEngine.UI.Extensions.HorizontalScrollSnap self = (UnityEngine.UI.Extensions.HorizontalScrollSnap)checkSelf(l);
         UnityEngine.EventSystems.PointerEventData      a1;
         checkType(l, 2, out a1);
         self.OnEndDrag(a1);
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Esempio n. 2
0
        //IEndDragHandler
        public void OnEndDrag(PointerEventData eventData)
        {
            if (scrollOther)
            {
                scrollOther           = false;
                _myScrollRect.enabled = true;
                ParentScrollRect.OnEndDrag(eventData);
                if (scriptParent != null)
                {
                    scriptParent.OnEndDrag(eventData);
                }

                _myScrollRect.verticalNormalizedPosition   = 1;
                _myScrollRect.horizontalNormalizedPosition = 1;
            }
        }