mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 14:50:44 +01:00
[apps/graph/calculation_graph_controller] Remove handleLeftRightEvent
This commit is contained in:
committed by
Léa Saviot
parent
bc0b5c092a
commit
8cb2b99254
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user