Skip to content

Commit 72e673b

Browse files
committed
fix: change on long speed to faster value
Refs: #20
1 parent 9ca8e22 commit 72e673b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/InputSpinner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {debounce, isNumeric, isEmpty} from "./Utils";
99
*/
1010
const defaultColor = "#3E525F";
1111
const defaultLongPressDelay = 750;
12-
const defaultLongPressSpeed = 7;
12+
const defaultLongPressSpeed = 5;
1313
const defaultTypingTime = 500;
1414

1515
/**
@@ -336,7 +336,7 @@ class InputSpinner extends Component {
336336
* @returns {number}
337337
*/
338338
getLongPressWaitingTime() {
339-
return 1000 / this.withinRange(this.props.onLongPressSpeed, 1, 10);
339+
return 1000 / (this.withinRange(this.props.onLongPressSpeed, 1, 10) * 2);
340340
}
341341

342342
/**

0 commit comments

Comments
 (0)