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

Identify and Utilize Interactable Areas of Partially Covered Widgets for Act Events #60

Merged
merged 22 commits into from
Jun 27, 2024

Conversation

danielmolnar
Copy link
Collaborator

Background

Previously, our testing framework attempted to interact with widgets at their geometric center only. This resulted in tests failing even though some areas of the widget were in fact interactable.

New Approach: Perform multiple hit tests across the entire renderobject in two phases:

  1. Phase: Check predefined likely interaction points, including the center, corners, and edge midpoints of the widget. This phase quickly identifies interactable areas in most standard cases.
  2. Phase: Zigzag Grid Search: If the initial phase does not find any interactable points, the function systematically searches the entire widget area using a zigzag pattern across an 8px by 8px grid.

@danielmolnar danielmolnar requested a review from passsy June 24, 2024 14:22
lib/src/act/act.dart Outdated Show resolved Hide resolved
@passsy passsy merged commit 52caec2 into main Jun 27, 2024
4 checks passed
@passsy passsy deleted the detect-pokable-positions branch June 27, 2024 15:31
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