public void MouseWheel(InputState input, bool wheelUp) { double xFrac = wheelUp ? 1.15 : 0.85; double yFrac = wheelUp ? 1.15 : 0.85; Settings.AxesZoomTo(xFrac, yFrac, input.X, input.Y); Render(false); }
public void MouseWheel(InputState input, bool wheelUp) { if (Configuration.ScrollWheelZoom == false) { return; } double xFrac = wheelUp ? 1.15 : 0.85; double yFrac = wheelUp ? 1.15 : 0.85; if (Configuration.LockHorizontalAxis) { xFrac = 1; } if (Configuration.LockVerticalAxis) { yFrac = 1; } Settings.AxesZoomTo(xFrac, yFrac, input.X, input.Y); Render(); }