Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

press/click: refuse a zero-area target instead of tapping its origin

Cerrado
#3,841 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Ya se ha fusionado un pull request relacionado.

  • #3842 de @faresrafat3 — cerrado sin fusionar
  • #3934 de @airowe — fusionado

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
20/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
typescript
Área
mobile, testing

Línea de trabajo

Start with packages/selectors/src/interaction-touch-point.ts and the existing interaction touch point tests in packages/selectors; the issue names this entry point but not a specific test file. Check how zero width or height is classified and use the existing typed reason for an unresolvable point. Add the requested regression test and command level case showing press refuses without dispatching a tap. An open linked pull request already covers this work.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug ready-for-agent

A selector that resolves to a zero-size node is tapped at the node's origin, and the command reports success.

Found on a physical iPhone in #1296 (comment). On SpringBoard home page 2, the page-1 icons stay in the tree with 0×0 rects and hittable: false. press 'label="Clock"' resolves to (0, 0), taps there, and reports success.

Cause on main: normalizeRect (packages/kernel/src/rect-center.ts) refuses only a negative width or height, so a 0×0 rect passes. resolveInteractionTouchPoint (packages/selectors/src/interaction-touch-point.ts) then returns the rect's center as a resolved point.

Required behavior:

  • resolveInteractionTouchPoint returns invalid for a target with zero width or zero height. Do not change normalizeRect, because other readers use zero-size rects legitimately.
  • A zero-area target refuses the interaction with the existing typed reason for an unresolvable point. Do not match error text.
  • A regression test in packages/selectors fails before the fix and passes after it. Add one command-level case that shows press refuses and does not dispatch a tap.
Lenguaje dominante
TypeScript
Estrellas
5.1k
Forks
339
Merge medio
12 h 57 min
PR fusionados (30 d)
653

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de callstack/agent-device

Todos los issues de callstack/agent-device

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.