forked from wix-incubator/react-native-interactable
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Android] Bug fix: Touchables in Interactable.View work properly
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d169000
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.isSwiping
is a boolean inInteractableView.java
. It is set to true at the start of a touch that is either horizontal or vertical (determined by the system hitSlop). I addedthis.isSwiping
into the drag event detection so that your finger must move out of the hitSlop to trigger the drag (and thus capture the touch from Touchables). If you setverticalOnly
orhorziontalOnly
to true you wouldn't experience the issue. It worked when you tapped delicately because that was aACTION_DOWN
not aACTION_MOVE
.wix-incubator#187