Skip to content

Fix for issue #719 - Touchable: right-click triggers onPress #804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

rxrossi
Copy link

@rxrossi rxrossi commented Feb 8, 2018

For components based on Touchable, in the conditions:

  • Secondary mouse click alone
  • Secondary mouse click while primary is active
  • Dragging secondary mouse click on touchable area
  • Dragging secondary mouse click from touchable area to outside
    The following events are no longer triggered:
  • onPress
  • onLongPress
  • onPressIn
  • onPressOut

For components based on Touchable, in the conditions:
  - Secondary mouse click alone
  - Secondary mouse click while primary is active
  - Dragging secondary mouse click on touchable area
  - Dragging secondary mouse click from touchable area to outside
The following events are no longer triggered:
  - onPress
  - onLongPress
  - onPressIn
  - onPressOut
@rxrossi rxrossi closed this Feb 8, 2018
@rxrossi rxrossi reopened this Feb 8, 2018
@necolas necolas closed this in 9ee89bc Feb 12, 2018
@necolas
Copy link
Owner

necolas commented Feb 12, 2018

Thanks. I've made a simpler fix to the responder event system that I think fixes this issue, and prevents right-clicks from triggering any events in the responder system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants