We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f786fd commit 7be854cCopy full SHA for 7be854c
packages/react-events/src/Press.js
@@ -64,20 +64,12 @@ function dispatchPressStartEvents(
64
dispatchPressChangeEvent(true);
65
}
66
if ((props.onLongPress || props.onLongPressChange) && !state.isLongPressed) {
67
- const delayLongPress = calculateDelayMS(props.delayLongPress, 0, 1000);
+ const delayLongPress = calculateDelayMS(props.delayLongPress, 10, 1000);
68
69
state.longPressTimeout = setTimeout(() => {
70
state.isLongPressed = true;
71
state.longPressTimeout = null;
72
73
- if (
74
- props.onPressChange &&
75
- props.onLongPressShouldCancelPress &&
76
- props.onLongPressShouldCancelPress()
77
- ) {
78
- dispatchPressChangeEvent(false);
79
- }
80
-
81
if (props.onLongPress) {
82
const longPressEventListener = e => {
83
props.onLongPress(e);
0 commit comments