示例#1
0
 public void OnPointerUp(PointerEventData eventData)
 {
     --pointerCount;
     if (pointerCount >= 1)
     {
         CacheMobilePinchArea.OnPointerUp(eventData);
     }
     if (pointerCount == 0)
     {
         CacheMobileSwipeArea.OnPointerUp(eventData);
     }
 }
示例#2
0
    public void OnPointerUp(PointerEventData eventData)
    {
        var touchId = eventData.pointerId;

        if (touchId == touchId1)
        {
            RemoveTouchId(touchId);
            touchId1 = -1;
            CacheMobileSwipeArea.OnPointerUp(eventData);
            CacheMobilePinchArea.OnPointerUp(eventData);
        }
        if (touchId == touchId2)
        {
            RemoveTouchId(touchId);
            touchId2 = -1;
            CacheMobileSwipeArea.OnPointerUp(eventData);
            CacheMobilePinchArea.OnPointerUp(eventData);
        }
    }