public void MouseUp(InputState input) { PlottableBeingDragged = null; bool mouseWasDragged = Settings.MouseHasMoved(input.X, input.Y); bool isZoomingRectangle = input.MiddleDown || (input.LeftDown && input.AltDown); if (isZoomingRectangle) { if (mouseWasDragged) { ApplyZoomRectangle(input); } else { MiddleClickAutoAxis(); } } if (input.RightDown && mouseWasDragged == false) { RightClicked(null, EventArgs.Empty); return; } Render(); UpdateCursor(input); }
public void MouseUp(InputState input) { PlottableBeingDragged = null; bool isZoomingRectangle = input.MiddleDown || (input.LeftDown && input.AltDown); if (isZoomingRectangle) { if (Settings.MouseHasMoved(input.X, input.Y)) { Settings.RecallAxisLimits(); Settings.MouseZoomRect(input.X, input.Y, finalize: true); } else { MiddleClickAutoAxis(); } } Render(false); UpdateCursor(input); }