bevyengine / bevyengine/bevy_github_ci_template

Large canvas not downsized properly when running wasm build in mobile on itch.io

Abierto
#69 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
265
Forks
57
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I'm having trouble with the canvas overflowing when using this template targeting mobile devices and publishing on itch.io.

I'm quite sure the change in this PR https://github.com/bevyengine/bevy_github_ci_template/pull/44 previously fixed the issue and properly resized the canvas to fit smaller screens, by adding the css

```

html, body {margin:0;height:100%;}

```

and configuring the window plugin to use `fit_canvas_to_parent: true`.

But something has changed 🤔 and this does not seem to help anymore as a canvas/window with dimensions larger then the target device will overflow and only show a cropped center part of the canvas/window content, when running on mobile on itch.io.

Anyone having the same issue (with itch.io in particular) and have found a workaround / fix?

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Empieza reproduciendo la compilación WASM publicada en un dispositivo móvil a través de itch.io y, después, compara el comportamiento de su canvas con la configuración de PR 44. Comprueba primero la configuración mostrada de CSS y window plugin; se considera terminado cuando el canvas se ajusta al dispositivo objetivo sin desbordamiento ni contenido recortado.

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

Evaluación

Stack tecnológico
css, wasm
Área
mobile-dev, web-dev
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.