mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user