[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

@@ -32,6 +32,8 @@ bool FunctionGoToParameterController::setParameterAtIndex(int parameterIndex, fl
return false;
}
m_cursor->moveTo(f, y);
m_graphRange->centerAxisAround(CurveViewRange::Axis::X, m_cursor->x());
m_graphRange->centerAxisAround(CurveViewRange::Axis::Y, m_cursor->y());
return true;
}