mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 01:29:58 +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:
@@ -70,7 +70,7 @@ bool CalculationGraphController::handleEnter() {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CalculationGraphController::moveCursorHorizontally(int direction) {
|
||||
bool CalculationGraphController::moveCursorHorizontally(int direction, bool fast) {
|
||||
Coordinate2D<double> newPointOfInterest = computeNewPointOfInterestFromAbscissa(m_cursor->x(), direction);
|
||||
if (std::isnan(newPointOfInterest.x1())) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user