[shared/interact_curve_view_range] Check orthonormality after zoom

Zooming in and out on a graph usually preserves orthonormality. However,
if the window has its bounds close to the limits for the values on the
axes, zooming can change the ratio.
This commit is contained in:
Gabriel Ozouf
2020-12-22 10:40:53 +01:00
committed by EmilieNumworks
parent 02d7a02a93
commit e9c953fd6e

View File

@@ -112,6 +112,7 @@ void InteractiveCurveViewRange::zoom(float ratio, float x, float y) {
m_yRange.setMax(yMa, k_lowerMaxFloat, k_upperMaxFloat);
MemoizedCurveViewRange::protectedSetYMin(yMi, k_lowerMaxFloat, k_upperMaxFloat);
}
setZoomNormalize(isOrthonormal());
m_offscreenYAxis *= ratio;
}