-
Notifications
You must be signed in to change notification settings - Fork 651
Touch event too hard to trigger on Android #60
Comments
@dancormier: would it make sense to add an onPress to the Swipeout component? |
The Swipeout onOpen function appears to be *** super *** sensitive on Android. Is there any configuration for sensitivity? I have to press a ListView row 4 or 5 times. I have to press very deliberate and straight and perpendicular to the tablet. See: Using: |
Using adb logacat, I can see that the _handlePanResponderGrant function gets called almost every time the ListView row is touched. Unless you press straight and quick ( not very easy ). This seems to prevent the ListView row's onPress method being called. I assume until the gesture has ended? https://github.com/dancormier/react-native-swipeout/blob/master/index.js
Perhaps there is someway to de-bounce or de-sensitive PanResponder to make it not detect a PAN gesture so easily? Set a deltaX or deltaY threshold? I cannot find anything in the react-native PanResponder documentation.
https://facebook.github.io/react-native/docs/panresponder.html |
set sensitivity to 1, it works for me |
@chkchk Thank you! I searched this repo for "sensitivity". I see it being used but not referenced. How can sensitivity be doing anything? I will give it a try anyway. https://github.com/dancormier/react-native-swipeout Props
|
thanks @chkchk works for me too |
It works for me too nicely! Thanks |
Hi, I've tried setting sensitivity to 1 but it's not working for me on an android device. The touch event is incredibly difficult to trigger and requires me to press the list item a few times quickly to work. The following is my renderRow code:
react-native 0.40.0 Anyone knows what I might have done wrong? |
Still hard to trigger onPress event of TouchableOpacity after set sensitivity to 1. |
I just published extension of Swipeout to make it works like Android behavior on Android. |
Thanks for adding proper Android support! It works quite well, but for one thing: a touch event requires holding the finger very still.
Consider the following components:
On iOS this works fine, but on Android triggering the
TouchableHighlight
is very hard: only a slight movement of the finger during the press triggers the swipeout action, which makes_onRowPress
hard to trigger.trippcr@ce2b048 on 2.0.9 still works.
The text was updated successfully, but these errors were encountered: