Example #1
0
        private void DragGesture_DragUpdate(object o, DragUpdateArgs args)
        {
            DragGesture.GetOffset(out double ox, out double oy);
            DisplayOffset = new PointD(Offset.X + ox, Offset.Y + oy);
            DrawingArea.QueueDraw();

            //Console.WriteLine($"Drag update ({ox}, {oy}), DispOffset: ({DisplayOffset.X}, {DisplayOffset.Y}), Offset: ({Offset.X}, {Offset.Y})");
        }
Example #2
0
 private void DragGestureCreate_DragUpdate(object o, DragUpdateArgs args)
 {
     DragGestureCreate.GetOffset(out double x, out double y);
     CurrentTool?.GestureUpdate(this, new Vector2d(x, y));
 }