[apps/graph] Faster curve navigation after some time

If the user presses the LEft/Right keys for a long time, the cursor will
move faster.
This commit is contained in:
Léa Saviot
2019-09-24 14:38:39 +02:00
parent b9bc9008ac
commit 1434158bee
14 changed files with 20 additions and 21 deletions

View File

@@ -81,7 +81,7 @@ bool GraphController::handleEnter() {
return FunctionGraphController::handleEnter();
}
bool GraphController::moveCursorHorizontally(int direction) {
bool GraphController::moveCursorHorizontally(int direction, bool fast) {
double xCursorPosition = std::round(m_cursor->x());
if (direction < 0 && xCursorPosition <= 0) {
return false;