示例#1
0
        public void MouseMove(RectRegion root, int x, int y)
        {
            MouseX = x;
            MouseY = y;
            Hover  = root.MouseMove(MouseX, MouseY);

            _mouseLeftDown?.MouseLeftDrag(_mouseLeftDown, DragEvent.Drag, x, y);
            _mouseRightDown?.MouseRightDrag(_mouseRightDown, DragEvent.Drag, x, y);
            _mouseMiddleDown?.MouseMiddleDrag(_mouseMiddleDown, DragEvent.Drag, x, y);
        }
示例#2
0
 public void MouseMiddleDown(int x, int y)
 {
     if (Active == null)
     {
         Active = Hover;
     }
     _mouseMiddleDown = Active.ParentPath.FirstOrDefault(r => r.RequireMouseMiddleCapture);
     _mouseMiddleDown?.MouseMiddleDrag(_mouseMiddleDown, DragEvent.Begin, x, y);
     //Console.WriteLine(nameof(MouseMiddleDown));
 }