@@ -25,6 +25,8 @@ import {
2525 */
2626export const defaultSpeed = 7 ;
2727export const defaultAccelerationDelay = 1000 ;
28+ export const defaultDelayPressIn = 0 ;
29+ export const defaultDelayPressOut = 0 ;
2830export const defaultTypingTime = 500 ;
2931
3032/**
@@ -1260,7 +1262,9 @@ class InputSpinner extends Component {
12601262 disabled = { this . _isDisabledButtonLeft ( ) }
12611263 style = { buttonStyle }
12621264 onPressIn = { this . decrease . bind ( this ) }
1265+ delayPressIn = { this . props . delayPressIn }
12631266 onPressOut = { this . onPressOut . bind ( this ) }
1267+ delayPressOut = { this . props . delayPressOut }
12641268 onLongPress = { this . decreaseHold . bind ( this ) }
12651269 delayLongPress = { this . props . accelerationDelay }
12661270 { ...this . props . leftButtonProps } >
@@ -1300,7 +1304,9 @@ class InputSpinner extends Component {
13001304 disabled = { this . _isDisabledButtonRight ( ) }
13011305 style = { buttonStyle }
13021306 onPressIn = { this . increase . bind ( this ) }
1307+ delayPressIn = { this . props . delayPressIn }
13031308 onPressOut = { this . onPressOut . bind ( this ) }
1309+ delayPressOut = { this . props . delayPressOut }
13041310 onLongPress = { this . increaseHold . bind ( this ) }
13051311 delayLongPress = { this . props . accelerationDelay }
13061312 { ...this . props . rightButtonProps } >
@@ -1502,6 +1508,8 @@ InputSpinner.defaultProps = {
15021508 width : "auto" ,
15031509 height : 50 ,
15041510 accelerationDelay : defaultAccelerationDelay ,
1511+ delayPressIn : defaultDelayPressIn ,
1512+ delayPressOut : defaultDelayPressOut ,
15051513 speed : defaultSpeed ,
15061514 emptied : false ,
15071515 continuity : false ,
0 commit comments