Example #1
0
 void OnEndDragForParent(PointerEventData eventData, IEndDragHandler parent)
 {
     if (null != parent)
     {
         parent.OnEndDrag(eventData);
     }
 }
 public void OnEndDrag(PointerEventData data)
 {
     if (endDragHandler != null)
     {
         endDragHandler.OnEndDrag(data);
     }
 }
Example #3
0
        public void OnEndDrag(PointerEventData eventData)
        {
            if (parentInitializePotentialDragHandler == null)
            {
                return;
            }

            parentEndDragHandler.OnEndDrag(eventData);
            _CurrentDragCapturedByParent = false;
        }
        private void EndDrag()
        {
            if (dragEndHandler != null)
            {
                var pointerData = new PointerEventData(EvSystem);
                pointerData.position = transform.position;

                dragEndHandler.OnEndDrag(pointerData);
            }
            dragEndHandler = null;
            dragHandler    = null;
        }
        private void Execute(IEndDragHandler handler, BaseEventData eventData)
        {
            var go = (handler as Component).gameObject;

            Debug.LogWarning("IEndDragHandler : " + go.name);
            OnEvent(handler, eventData);
            if (SkipSendTouch)
            {
                return;
            }

            handler.OnEndDrag(ExecuteEvents.ValidateEventData <PointerEventData>(eventData));
        }
Example #6
0
        public virtual void OnEndDrag(PointerEventData data)
        {
            this.m_DragMove = false;
            if (this.HasEvent((EventTriggerType)14))
            {
                this.Send((EventTriggerType)14, data.get_position());
            }
            if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.syncEvent, (UnityEngine.Object)null))
            {
                return;
            }
            IEndDragHandler component = (IEndDragHandler)this.syncEvent.GetComponent <IEndDragHandler>();

            if (component == null)
            {
                return;
            }
            component.OnEndDrag(data);
        }
Example #7
0
    public static int OnEndDrag(IntPtr l)
    {
        int result;

        try
        {
            IEndDragHandler  endDragHandler = (IEndDragHandler)LuaObject.checkSelf(l);
            PointerEventData eventData;
            LuaObject.checkType <PointerEventData>(l, 2, out eventData);
            endDragHandler.OnEndDrag(eventData);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #8
0
 private static void Execute(IEndDragHandler handler, BaseEventData eventData)
 {
     handler.OnEndDrag(ValidateEventData <PointerEventData>(eventData));
 }
Example #9
0
 public void OnEndDrag(PointerEventData eventData)
 {
     scrollviewParentIEndDragHandler.OnEndDrag(eventData);
 }