Clicking on the segment of the in-focus word causes Continuous View to jump to the start of that segment.
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- frontend
Línea de trabajo
Empieza en SegmentView.tsx y sigue su callback de selección hasta selectSegment en FocusStore.tsx, donde el issue identifica la escritura del foco y la comprobación del versículo. Comprueba el comportamiento existente de contención de focusToken para compararlo. El trabajo está hecho cuando seleccionar un segmento que ya contiene el foco no desplaza Continuous View ni restablece un versículo activo posterior al inicio del segmento.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
When Continuous View is focused on a word in a given segment, clicking that segment in the Segment View (e.g., to type a free translation), shouldn't need to cause the Continuous View to jump.
Cause
Clicking a segment's background or focusing its free-translation input calls onSelect(ref, firstWordTokenRef) in SegmentView.tsx. selectSegment in FocusStore.tsx then always focuses the segment's first word token, so Continuous View re-centers on it.
That write exists to make the segment active (including verse 0). When the focus is already in the segment, the segment is already active, so the write isn't needed.
Suggested fix
In selectSegment, skip the token write when the current focus is already in the same segment as tokenRef.
Related
selectSegment navigates unless the active verse is exactly the segment's start verse. focusToken instead checks whether the segment contains the active verse. So with a later verse of a multi-verse segment active, clicking that segment jumps the active verse back to its start. Worth switching to the containment check in the same change.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2
- Forks
- 0
- Merge medio
- 1 d 1 h
- PR fusionados (30 d)
- 107
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 sillsdev/interlinearizer-extension
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
sillsdev/interlinearizer-extension#655 ·
Los mantenedores suelen responder en 1 día
-
Update menu itemsPosiblemente ocupada @imnasnainaec la tomó hace 4 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
sillsdev/interlinearizer-extension#613 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
sillsdev/interlinearizer-extension#548 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
sillsdev/interlinearizer-extension#515 ·
Los mantenedores suelen responder en 1 día
-
Changes to dialogs opened from the main Interlinear menuPosiblemente ocupada @alex-rawlings-yyc la tomó hoy. Abierto
sillsdev/interlinearizer-extension#658 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de sillsdev/interlinearizer-extension
Issues similares
-
pending close triaging
Dificultad 1/5 1-3 horas Aptitud para principiantes 74/100
anomalyco/opencode#63090 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
ai-driven-qa bug claude Cosmetic
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
ai-driven-qa bug claude Minor
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
linagora/twake-mail-admin#609 ·
Los mantenedores suelen responder en 1 día