Skip to content
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

Handle touch cancellation / touch up away from button correctly #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

apptekstudios
Copy link

Hi @simonbs, nice library. Very useful to save reimplementing this.

I noticed you weren't able to cancel a button press by moving away from the button (as also mentioned in #1 )

This is a simple patch to only run the representativeTool action if 'touchUpInside' was fired (rather than outside as well). It should not affect behaviour of the sub-tools.

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.

1 participant