@@ -25,6 +25,8 @@ import {
25
25
*/
26
26
export const defaultSpeed = 7 ;
27
27
export const defaultAccelerationDelay = 1000 ;
28
+ export const defaultDelayPressIn = 0 ;
29
+ export const defaultDelayPressOut = 0 ;
28
30
export const defaultTypingTime = 500 ;
29
31
30
32
/**
@@ -1260,7 +1262,9 @@ class InputSpinner extends Component {
1260
1262
disabled = { this . _isDisabledButtonLeft ( ) }
1261
1263
style = { buttonStyle }
1262
1264
onPressIn = { this . decrease . bind ( this ) }
1265
+ delayPressIn = { this . props . delayPressIn }
1263
1266
onPressOut = { this . onPressOut . bind ( this ) }
1267
+ delayPressOut = { this . props . delayPressOut }
1264
1268
onLongPress = { this . decreaseHold . bind ( this ) }
1265
1269
delayLongPress = { this . props . accelerationDelay }
1266
1270
{ ...this . props . leftButtonProps } >
@@ -1300,7 +1304,9 @@ class InputSpinner extends Component {
1300
1304
disabled = { this . _isDisabledButtonRight ( ) }
1301
1305
style = { buttonStyle }
1302
1306
onPressIn = { this . increase . bind ( this ) }
1307
+ delayPressIn = { this . props . delayPressIn }
1303
1308
onPressOut = { this . onPressOut . bind ( this ) }
1309
+ delayPressOut = { this . props . delayPressOut }
1304
1310
onLongPress = { this . increaseHold . bind ( this ) }
1305
1311
delayLongPress = { this . props . accelerationDelay }
1306
1312
{ ...this . props . rightButtonProps } >
@@ -1502,6 +1508,8 @@ InputSpinner.defaultProps = {
1502
1508
width : "auto" ,
1503
1509
height : 50 ,
1504
1510
accelerationDelay : defaultAccelerationDelay ,
1511
+ delayPressIn : defaultDelayPressIn ,
1512
+ delayPressOut : defaultDelayPressOut ,
1505
1513
speed : defaultSpeed ,
1506
1514
emptied : false ,
1507
1515
continuity : false ,
0 commit comments