protected override void TouchGestureRecognizerOnPan(object sender, PanEventArgs args)
 {
     base.TouchGestureRecognizerOnPan(sender, args);
     if (args.TouchActionType == TouchActionType.Released)
     {
         _invalidateViewAction();
     }
     ProcessGestureDelays(ref _lastPanTime, _minGestureDuration, args.TouchActionType);
 }
        protected virtual void TouchGestureRecognizerOnPan(object sender, PanEventArgs args)
        {
            if (args.TouchActionType != TouchActionType.Moved)
            {
                return;
            }

            SKPoint resultVector = args.NewPoint - args.PreviousPoint;

            _skScene.MoveByVector(resultVector);
        }
示例#3
0
        protected virtual void TouchGestureRecognizerOnPan(object sender, PanEventArgs args)
        {
            SKPoint resultVector = args.NewPoint - args.PreviousPoint;

            _skScene.MoveByVector(resultVector);
        }