press/click: refuse a zero-area target instead of tapping its origin
Los mantenedores suelen responder en 1 día
Ya se ha fusionado un pull request relacionado.
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
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
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:
resolveInteractionTouchPointreturnsinvalidfor a target with zero width or zero height. Do not changenormalizeRect, 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/selectorsfails before the fix and passes after it. Add one command-level case that showspressrefuses 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
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de callstack/agent-device
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
callstack/agent-device#3945 ·
Los mantenedores suelen responder en 1 día
-
Limrun iOS fill reports success but drops non-ASCII textPosiblemente ocupada @mvanhorn la tomó hace 4 días. Abiertobug ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 87/100
callstack/agent-device#3819 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
callstack/agent-device#1869 ·
Los mantenedores suelen responder en 1 día
-
iOS keyboard capture can race dismissal and omit the input assistant barPosiblemente ocupada @shamilovtim la tomó hoy. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 51/100
callstack/agent-device#3957 ·
Los mantenedores suelen responder en 1 día
-
iOS fill can report TEXT_ENTRY_MISMATCH before the confirmation deadlinePosiblemente ocupada @shamilovtim la tomó hoy. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
callstack/agent-device#3952 ·
Los mantenedores suelen responder en 1 día
Todos los issues de callstack/agent-device
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
microsoft/playwright#43640 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
grasshopper-protocol/grsshppr#172 ·
Los mantenedores suelen responder en 1 día
-
bug help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Tencent/teamai-cli#1397 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
DouyinFE/semi-design#3641 ·
Los mantenedores suelen responder en 3 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día