public override bool MouseMove(MouseEventArgs e) { if (e.Button == MouseButtons.Left) { var dx = e.Location.X - ViewPort.pointLast.X; var dy = e.Location.Y - ViewPort.pointLast.Y; ViewPort.Move(dx, dy); ViewPort.pointLast = e.Location; } return(true); }