mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/shared] In graph, enable cursor to be at infinity without moving range
Change-Id: I6de1593a3017d28c0187a0a3ab3f19b7cbbaa667
This commit is contained in:
@@ -65,6 +65,9 @@ bool FunctionGraphController::didChangeRange(InteractiveCurveViewRange * interac
|
||||
}
|
||||
}
|
||||
float range = max - min;
|
||||
if (max < min) {
|
||||
range = 0.0f;
|
||||
}
|
||||
if (interactiveCurveViewRange->yMin() == min-k_displayBottomMarginRatio*range
|
||||
&& interactiveCurveViewRange->yMax() == max+k_displayTopMarginRatio*range) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user