[apps/graph/calculation_graph_controller] Remove handleLeftRightEvent

This commit is contained in:
Ruben Dashyan
2019-05-03 16:08:59 +02:00
committed by Léa Saviot
parent bc0b5c092a
commit 8cb2b99254
2 changed files with 3 additions and 8 deletions

View File

@@ -57,13 +57,6 @@ ContinuousFunctionStore * CalculationGraphController::functionStore() const {
return App::app()->functionStore();
}
bool CalculationGraphController::handleLeftRightEvent(Ion::Events::Event event) {
if (!m_isActive) {
return false;
}
return SimpleInteractiveCurveViewController::handleLeftRightEvent(event);
}
bool CalculationGraphController::handleEnter() {
StackViewController * stack = static_cast<StackViewController *>(parentResponder());
stack->pop();
@@ -71,6 +64,9 @@ bool CalculationGraphController::handleEnter() {
}
bool CalculationGraphController::moveCursorHorizontally(int direction, bool fast) {
if (!m_isActive) {
return false;
}
Coordinate2D<double> newPointOfInterest = computeNewPointOfInterestFromAbscissa(m_cursor->x(), direction);
if (std::isnan(newPointOfInterest.x1())) {
return false;