react-native/Libraries/Components/Touchable
PIYUSH GUPTA 05723ed08a fixed touchable longpress (#24238)
Summary:
This diff fixes a bug in TouchableNativeFeedback where a long press is not registered.

cause of the bug is _touchableHandleResponderMove_ being invoked **regardless** of a moving gesture ( even when movedDistance is 0) in some devices ( including OnePlus5t ), which was eventually clearing out  the long-press timeout.

fix is to prevent _touchableHandleResponderMove_ from Implementing if the state of touchable is RESPONDER_INACTIVE_PRESS_IN.

[General] [Fixed] - Touchable onLongPress fix.
Pull Request resolved: https://github.com/facebook/react-native/pull/24238

Reviewed By: cpojer

Differential Revision: D14712986

Pulled By: rickhanlonii

fbshipit-source-id: e85a66a7e8b61e0a33146b2472e2e055726a0e93
2019-04-08 23:16:42 +02:00
..
__mocks__ Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
__tests__ Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
BoundingDimensions.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
PooledClass.js Use `invariant` instead of `fbjs/lib/invariant` 2018-12-03 00:07:02 -08:00
Position.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
Touchable.js fixed touchable longpress (#24238) 2019-04-08 23:16:42 +02:00
TouchableBounce.js Deploy v0.89 2018-12-14 13:57:50 -08:00
TouchableHighlight.js Deploy v0.89 2018-12-14 13:57:50 -08:00
TouchableNativeFeedback.android.js Deploy v0.89 2018-12-14 13:57:50 -08:00
TouchableNativeFeedback.ios.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
TouchableOpacity.js Deploy v0.89 2018-12-14 13:57:50 -08:00
TouchableWithoutFeedback.js Flow TouchableWithoutFeedback (#22479) 2018-12-04 17:06:05 -08:00
ensureComponentIsNative.js Use `invariant` instead of `fbjs/lib/invariant` 2018-12-03 00:07:02 -08:00
ensurePositiveDelayProps.js Use `invariant` instead of `fbjs/lib/invariant` 2018-12-03 00:07:02 -08:00