[ion] Remove unused function and rename longRepetitionScrollSpeed

Change-Id: I11268eb34060c74eb8770ba0eb999f84737c76d8
This commit is contained in:
Hugo Saint-Vignes
2020-06-10 16:48:24 +02:00
committed by Émilie Feral
parent 70cd166da5
commit af32f33141
8 changed files with 9 additions and 14 deletions

View File

@@ -28,7 +28,7 @@ bool SimpleInteractiveCurveViewController::textFieldDidReceiveEvent(TextField *
bool SimpleInteractiveCurveViewController::handleLeftRightEvent(Ion::Events::Event event) {
int direction = event == Ion::Events::Left ? -1 : 1;
if (moveCursorHorizontally(direction, Ion::Events::longRepetitionScrollSpeed())) {
if (moveCursorHorizontally(direction, Ion::Events::repetitionFactor())) {
interactiveCurveViewRange()->panToMakePointVisible(
m_cursor->x(), m_cursor->y(),
cursorTopMarginRatio(), k_cursorRightMarginRatio, cursorBottomMarginRatio(), k_cursorLeftMarginRatio