mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[graph] Fix a bug when zooming
When entering the Navigate menu, a portion of the Y axis is memoized to preserve the grid units. However, this portion was not modified when zooming, causing some glitches. Change-Id: I06b4ee044eaa75d48b8f338c9ef6ea33bb299e39
This commit is contained in:
committed by
EmilieNumworks
parent
ea3e3287dc
commit
41778433b1
@@ -115,6 +115,7 @@ void InteractiveCurveViewRange::zoom(float ratio, float x, float y) {
|
||||
m_yRange.setMax(newYMax, k_lowerMaxFloat, k_upperMaxFloat);
|
||||
MemoizedCurveViewRange::protectedSetYMin(newYMin, k_lowerMaxFloat, k_upperMaxFloat);
|
||||
}
|
||||
m_offscreenYAxis *= ratio;
|
||||
}
|
||||
|
||||
void InteractiveCurveViewRange::panWithVector(float x, float y) {
|
||||
|
||||
Reference in New Issue
Block a user