mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[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:
committed by
EmilieNumworks
parent
02d7a02a93
commit
e9c953fd6e
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user