public void MouseMoveHandler(object sender, MouseEventArgs e) { // Mouse shortcuts switch (e.Button) { case MouseButtons.Left: break; case MouseButtons.Right: view2d.Pan(e.X - _xMin, _yMin - e.Y); break; case MouseButtons.Middle: view2d.Zoom(_xMin, _yMin, e.X, e.Y, 0.005); break; } _currentAction.MouseMoveHandler(sender, e); mouseInput.MouseMove(e.X, e.Y, (e.Button != MouseButtons.None)); _xMin = e.X; _yMin = e.Y; }