Skip to content

Commit

Permalink
[ReactNative] Touchable invoke press on longPress when longPress hand…
Browse files Browse the repository at this point in the history
…ler missing
  • Loading branch information
Eric Vicenti committed Mar 20, 2015
1 parent 21a1cd5 commit c445cbd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ var TouchableMixin = {
}

if (IsPressingIn[curState] && signal === Signals.RESPONDER_RELEASE) {
var hasLongPressHandler = !!this.touchableHandleLongPress;
var hasLongPressHandler = !!this.props.onLongPress;
var pressIsLongButStillCallOnPress =
IsLongPressingIn[curState] && ( // We *are* long pressing..
!hasLongPressHandler || // But either has no long handler
Expand Down

0 comments on commit c445cbd

Please sign in to comment.