mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 14:20:39 +01:00
[apps/graph] Add fast scroll for regression and sequence graph views
Change-Id: I6b36e929234ec5dc161b0eefb20eb84aa360fe3b
This commit is contained in:
committed by
Émilie Feral
parent
1879eb36d8
commit
241a217f58
@@ -235,7 +235,11 @@ bool GraphController::moveCursorHorizontally(int direction, bool fast) {
|
||||
}
|
||||
*m_selectedDotIndex = dotSelected;
|
||||
} else {
|
||||
x = m_cursor->x() + direction * m_store->xGridUnit()/k_numberOfCursorStepsInGradUnit;
|
||||
double step = direction * m_store->xGridUnit()/k_numberOfCursorStepsInGradUnit;
|
||||
if (fast) {
|
||||
step *= 5.0;
|
||||
}
|
||||
x = m_cursor->x() + step;
|
||||
y = yValue(*m_selectedSeriesIndex, x, globalContext());
|
||||
}
|
||||
m_cursor->moveTo(x, x, y);
|
||||
|
||||
Reference in New Issue
Block a user