mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/graph] If only cartesians, jump to next curve when out of range
Scenario:
-----------• ->press "right": the cursor goes on the lower curve
-*-*-*-*-*-
This commit is contained in:
committed by
EmilieNumworks
parent
f037df0ab5
commit
e9974a216d
@@ -157,9 +157,9 @@ bool FunctionGraphController::moveCursorVertically(int direction) {
|
||||
if (nextActiveFunctionIndex < 0) {
|
||||
return false;
|
||||
}
|
||||
selectFunctionWithCursor(nextActiveFunctionIndex);
|
||||
Poincare::Coordinate2D<double> cursorPosition = xyValues(nextActiveFunctionIndex, m_cursor->t(), context);
|
||||
m_cursor->moveTo(m_cursor->t(), cursorPosition.x1(), cursorPosition.x2());
|
||||
selectFunctionWithCursor(nextActiveFunctionIndex);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user