mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +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
@@ -85,7 +85,7 @@ bool GraphController::moveCursorHorizontally(int direction, bool fast) {
|
||||
return false;
|
||||
}
|
||||
// The cursor moves by step that is larger than 1 and than a pixel's width.
|
||||
const int step = std::ceil(m_view.pixelWidth());
|
||||
const int step = std::ceil(m_view.pixelWidth()) * (fast ? 5 : 1);
|
||||
double x = direction > 0 ? xCursorPosition + step:
|
||||
xCursorPosition - step;
|
||||
if (x < 0.0) {
|
||||
|
||||
Reference in New Issue
Block a user