mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
fc45530ded
Summary: During the development of `Pressability`, I removed the default "press in delay" in order to minimize differences between `Touchable` (as used by `TouchableWithoutFeedback`) and `Pressability`. However, it was a bug that `TouchableWithoutFeedback` zero'd out the default press delay. This restores the original "press in delay". This will make it so that when users swipe over a pressable element in a scroll view, the scroll view will have time to cancel the touch and prevent a press in behavior (visual jank). Changelog: [General] [Changed] - Increase default `delayPressIn` value for `Pressability` to 130ms. Reviewed By: TheSavior Differential Revision: D20176152 fbshipit-source-id: 5d6481395ee501bcab20ab98cb46a6be2c423ddf