[apps/shared] In go to parameter controller, center window at the same

time, the cursor is changed

Change-Id: Ieece94131d0bf319078d36fcfe66c2bb58d0279d
This commit is contained in:
Émilie Feral
2017-05-30 10:31:47 +02:00
parent 3af8c86504
commit adf806c628
4 changed files with 6 additions and 4 deletions

View File

@@ -7,8 +7,8 @@ namespace Shared {
GoToParameterController::GoToParameterController(Responder * parentResponder, InteractiveCurveViewRange * graphRange, CurveViewCursor * cursor, I18n::Message symbol) :
FloatParameterController(parentResponder),
m_cursor(cursor),
m_abscisseCell(nullptr),
m_graphRange(graphRange),
m_abscisseCell(nullptr),
m_abscissaSymbol(symbol)
{
}
@@ -27,8 +27,6 @@ int GoToParameterController::reusableParameterCellCount(int type) {
}
void GoToParameterController::buttonAction() {
m_graphRange->centerAxisAround(CurveViewRange::Axis::X, m_cursor->x());
m_graphRange->centerAxisAround(CurveViewRange::Axis::Y, m_cursor->y());
StackViewController * stack = (StackViewController *)parentResponder();
stack->pop();
stack->pop();