예제 #1
0
 void UpdateLongTapGesture(GestureHandler handler)
 {
     if (_gestureLayer == null)
     {
         return;
     }
     if (handler.Timeout > 0 && handler.Timeout < _gestureLayer.LongTapTimeout)
     {
         _gestureLayer.LongTapTimeout = handler.Timeout;
     }
 }
예제 #2
0
 void UpdateFlickGesture(GestureHandler handler)
 {
     if (_gestureLayer == null)
     {
         return;
     }
     if (handler.Timeout > _gestureLayer.FlickTimeLimit)
     {
         _gestureLayer.FlickTimeLimit = (int)(handler.Timeout * 1000);
     }
 }
예제 #3
0
        void UpdateTapGesture(GestureHandler handler)
        {
            if (handler == null)
            {
                return;
            }
            RemoveGesture(handler.Recognizer);
            AddGesture(handler.Recognizer);

            if (_gestureLayer == null)
            {
                return;
            }
            if (handler.Timeout > _gestureLayer.DoubleTapTimeout)
            {
                _gestureLayer.DoubleTapTimeout = handler.Timeout;
            }
        }