mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 02:04:55 +00:00
[ReactNative] Touchable invoke press on longPress when longPress handler missing
This commit is contained in:
parent
21a1cd52b5
commit
c445cbdb1e
@ -636,7 +636,7 @@ var TouchableMixin = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (IsPressingIn[curState] && signal === Signals.RESPONDER_RELEASE) {
|
if (IsPressingIn[curState] && signal === Signals.RESPONDER_RELEASE) {
|
||||||
var hasLongPressHandler = !!this.touchableHandleLongPress;
|
var hasLongPressHandler = !!this.props.onLongPress;
|
||||||
var pressIsLongButStillCallOnPress =
|
var pressIsLongButStillCallOnPress =
|
||||||
IsLongPressingIn[curState] && ( // We *are* long pressing..
|
IsLongPressingIn[curState] && ( // We *are* long pressing..
|
||||||
!hasLongPressHandler || // But either has no long handler
|
!hasLongPressHandler || // But either has no long handler
|
||||||
|
Loading…
x
Reference in New Issue
Block a user