示例#1
0
        public void TouchesMoved(PointF[] points)
        {
            if (!_dragStarted)
            {
                if (points.Length == 1)
                {
                    float deltaX = _lastMovedViewPoints[0].X - points[0].X;
                    float deltaY = _lastMovedViewPoints[0].Y - points[0].Y;

                    if (Math.Abs(deltaX) <= 3 && Math.Abs(deltaY) <= 3)
                    {
                        return;
                    }
                }
            }

            _lastMovedViewPoints = points;
            _dragStarted         = true;
            _pressedContained    = _bounds.ContainsAny(points);
            _graphicsView?.DragInteraction(points);
        }