Skip to content

Improve touch target detection and UI layout in the A11y Scanner - #10

Merged
mohdaquib merged 1 commit into
mainfrom
bug/ui-issues-fix
Jul 14, 2026
Merged

Improve touch target detection and UI layout in the A11y Scanner#10
mohdaquib merged 1 commit into
mainfrom
bug/ui-issues-fix

Conversation

@mohdaquib

Copy link
Copy Markdown
Owner
  • Update A11yNodeExtractor to use touchBoundsInRoot instead of layout bounds, ensuring that compact components with expanded touch regions (like small chips) are correctly evaluated.
  • Introduce MeasurementToleranceDp (0.01dp) in TouchTargetRule to prevent false negatives caused by floating-point rounding errors during coordinate conversion.
  • Add windowInsetsPadding to ScanSummaryBar to prevent the summary UI from overlapping with system status bars.
  • Add unit and instrumentation tests to verify measurement tolerance and expanded touch bound extraction for compact clickable elements.

- Update `A11yNodeExtractor` to use `touchBoundsInRoot` instead of layout bounds, ensuring that compact components with expanded touch regions (like small chips) are correctly evaluated.
- Introduce `MeasurementToleranceDp` (0.01dp) in `TouchTargetRule` to prevent false negatives caused by floating-point rounding errors during coordinate conversion.
- Add `windowInsetsPadding` to `ScanSummaryBar` to prevent the summary UI from overlapping with system status bars.
- Add unit and instrumentation tests to verify measurement tolerance and expanded touch bound extraction for compact clickable elements.
@mohdaquib
mohdaquib merged commit 8bcb55f into main Jul 14, 2026
2 checks passed
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