[apps/shared] Fix InteractiveCurveViewController::moveCursorVertically

for Sequence and Regression (add a TODO for Graph)
This commit is contained in:
Émilie Feral
2019-08-30 14:49:11 +02:00
parent 8b7e243d2d
commit 2d5b60640d
3 changed files with 4 additions and 8 deletions

View File

@@ -221,8 +221,6 @@ bool InteractiveCurveViewController::isCursorVisible() {
}
int InteractiveCurveViewController::closestCurveIndexVertically(bool goingUp, int currentCurveIndex, Poincare::Context * context) const {
return 0; //TODO LEA
#if 0
double x = m_cursor->x();
double y = m_cursor->y();
double nextY = goingUp ? DBL_MAX : -DBL_MAX;
@@ -232,7 +230,7 @@ int InteractiveCurveViewController::closestCurveIndexVertically(bool goingUp, in
if (!closestCurveIndexIsSuitable(i, currentCurveIndex)) {
continue;
}
double newY = yValue(i, x, context);
double newY = xyValues(i, x, context).x2();
if (!suitableYValue(newY)) {
continue;
}
@@ -275,7 +273,6 @@ int InteractiveCurveViewController::closestCurveIndexVertically(bool goingUp, in
}
}
return nextCurveIndex;
#endif
}
float InteractiveCurveViewController::cursorBottomMarginRatio() {