mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[apps/graph] GraphController: when moving cursor vertically (on non
cartesian functions), going down increases the function index (to mimic their vertical order in the function list)
This commit is contained in:
@@ -71,7 +71,7 @@ int GraphController::closestCurveIndexVertically(bool goingUp, int currentSelect
|
||||
if (functionStore()->numberOfActiveFunctionsOfType(CartesianFunction::PlotType::Cartesian) == nbOfActiveFunctions) {
|
||||
return FunctionGraphController::closestCurveIndexVertically(goingUp, currentSelectedCurve, context);
|
||||
}
|
||||
int nextActiveFunctionIndex = currentSelectedCurve + (goingUp ? 1 : -1);
|
||||
int nextActiveFunctionIndex = currentSelectedCurve + (goingUp ? -1 : 1);
|
||||
return nextActiveFunctionIndex >= nbOfActiveFunctions ? -1 : nextActiveFunctionIndex;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user