mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
[apps/*/function_graph_controller] Factor selectFunctionWithCursor
This commit is contained in:
committed by
Léa Saviot
parent
246a9aa7a4
commit
63424fb98b
@@ -149,10 +149,10 @@ void FunctionGraphController::initCursorParameters() {
|
||||
functionIndex = 0;
|
||||
}
|
||||
m_cursor->moveTo(t, xy.x1(), xy.x2());
|
||||
selectFunctionWithCursor(functionIndex);
|
||||
if (interactiveCurveViewRange()->yAuto()) {
|
||||
interactiveCurveViewRange()->panToMakePointVisible(xy.x1(), xy.x2(), cursorTopMarginRatio(), k_cursorRightMarginRatio, cursorBottomMarginRatio(), k_cursorLeftMarginRatio);
|
||||
}
|
||||
selectFunctionWithCursor(functionIndex);
|
||||
}
|
||||
|
||||
bool FunctionGraphController::moveCursorVertically(int direction) {
|
||||
|
||||
Reference in New Issue
Block a user