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

Improve hit test methods #6

Merged
merged 4 commits into from
Jul 16, 2021
Merged

Improve hit test methods #6

merged 4 commits into from
Jul 16, 2021

Conversation

gabriellanata
Copy link
Contributor

Hit testing methods were failing for views with gesture recognizers and for views that only responded to a specific type of event (example: dragging). I'm updating the screenHitPoint to use other methods for detecting if a view is hittable.

Additionally, I've also changed the default tap location behavior to return the main view instead of the center point of the screen. By using the view directly we can check if it's actually visible or hittable, resulting in significantly better error messages.

dduan
dduan previously approved these changes Jul 15, 2021
@gabriellanata gabriellanata linked an issue Jul 15, 2021 that may be closed by this pull request
Base automatically changed from Update-waiting-methods to main July 15, 2021 21:37
@gabriellanata gabriellanata requested a review from dduan July 16, 2021 01:40
@gabriellanata gabriellanata merged commit 99f4d05 into main Jul 16, 2021
@gabriellanata gabriellanata deleted the Improve-hittest-methods branch July 16, 2021 03:00
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.

waitUntilHittable never waits?
2 participants