Blake.NUI.WPF.Gestures.TapGestureEngine.TrackTouchMove C# (CSharp) Метод

TrackTouchMove() публичный Метод

public TrackTouchMove ( Point position, System.DateTime timestamp ) : void
position Point
timestamp System.DateTime
Результат void
    public void TrackTouchMove(Point position, DateTime timestamp)
    {
      if (IsCompleted || IsAborted)
        return;

      Vector delta = position - StartPoint;
      if (delta.Length > _maxMovement)
      {
        AbortGesture();
      }
    }

Usage Example

        public void TrackTouchMove(Point position, DateTime timestamp)
        {
            if (IsCompleted || IsAborted)
            {
                return;
            }

            if (!firstTap.IsCompleted)
            {
                firstTap.TrackTouchMove(position, timestamp);
            }
            else if (!secondTap.IsCompleted)
            {
                secondTap.TrackTouchMove(position, timestamp);
            }
        }