[Bug] Unexpected map distortion with sticky elements
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- react, typescript
- Área
- data-visualization, frontend
Línea de trabajo
Empieza con src/index.js en el CodeSandbox enlazado y reproduce la distorsión en Chrome usando un elemento sticky encima del componente Map. Compara el resultado con el ejemplo de Mapbox React enlazado en el issue y acota la diferencia de comportamiento. Se considera terminado cuando el mapa ya no se desplaza ni se distorsiona visualmente mientras el elemento sticky se superpone a él.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
Given a minimal document, e.g., a div container that contains two elements:
- A div with position sticky, top 0, and some height value
- The Map component
When scrolling, as the sticky header sits on top of the map container, the map seems to scroll itself within the container, for the height of the sticky div. When the sticky div has been scrolled more than its height down the map container, the map canvas resets to the correct position. The issue only seems to happen on Chrome.
Expected Behavior
I would expect it to not scroll/visually distort on Chrome.
Steps to Reproduce
https://codesandbox.io/p/sandbox/sleepy-chaum-3xvglx?file=%2Fsrc%2Findex.js
Example here. Simply need a container, a sticky element with some height >0.
I have verified that the issue does not occur when creating a map using the Mapbox instructions here:
https://docs.mapbox.com/help/tutorials/use-mapbox-gl-js-with-react/ in place of the Map component in the above example.
Environment
- Framework version: [email protected]
- Map library: [email protected], [email protected]
- Browser: Google Chrome Version 126.0.6478.127 (Official Build) (x86_64)
- OS: macOS Sonoma 14.4.1
Logs
No response
- Lenguaje dominante
- TypeScript
- Estrellas
- 8.5k
- Forks
- 1.3k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
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 visgl/react-map-gl
-
DEFAULT_SETTINGS.maxBounds in @vis.gl/react-maplibre has 360° longitude span, triggers maplibre-gl-js#6148 crash via _updateSettings fallbackQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
visgl/react-map-gl#2591 · 2 comentarios ·
-
[Bug] Mapbox geocoder example crashes: "i is not a function"Posiblemente ocupada @yuiseki la tomó hace 20 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
visgl/react-map-gl#2628 ·
-
[Bug] Scroll zoom stops short of maxZoom in controlled mode with MapLibrePosiblemente ocupada @sviat-barbutsa la tomó hace 33 días. Abiertobug
Dificultad 3/5 Medio día Aptitud para principiantes 74/100
visgl/react-map-gl#2626 ·
-
[Bug] reuseMaps: Mapbox.reuse() infinite-loops (tab freeze) when the recycled map's container is the mount containerPosiblemente ocupada @mikeyfarina la tomó hace 82 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
visgl/react-map-gl#2613 ·
-
feature
Dificultad 5/5 Más de una semana Aptitud para principiantes 42/100
visgl/react-map-gl#2603 · 1 reacción ·
Todos los issues de visgl/react-map-gl
Issues similares
-
accessibility area:ci ci-test level:low priority:high type:test
Dificultad 2/5 1-3 horas Aptitud para principiantes 71/100
skytuhua-org/Gen-V1#3132 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
drmrd/vernacular#1238 ·
Los mantenedores suelen responder en 1 día
-
question
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
enhancement migration-prioritized
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Hudson-Pufferfish/local-party-console#136 ·
Los mantenedores suelen responder en 1 día
-
priority:medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día