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

Avoiding crash on multi-touch #471

Merged
merged 4 commits into from
Sep 4, 2018
Merged

Avoiding crash on multi-touch #471

merged 4 commits into from
Sep 4, 2018

Conversation

aure
Copy link
Contributor

@aure aure commented Sep 3, 2018

This change avoids force unwrapping of something that might not exist. You can witness the crash that this could cause by running the Macaw Example project and going to the Events demo. Then use more than one finger and watch the thread exception on line 299 of MacawView.swift.

This may not be the best long term way to deal with multi-touch, but it is definitely an improvement.

@ystrot ystrot self-assigned this Sep 4, 2018
@ystrot ystrot added this to the 0.9.3 milestone Sep 4, 2018
@ystrot ystrot merged commit af9727e into exyte:master Sep 4, 2018
@f3dm76
Copy link
Collaborator

f3dm76 commented Sep 4, 2018

Thanks, aure! Your changes are available in the master branch

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.

3 participants