Explorar el Código

Make scroll-resizing work with auto-world size

tags/v0.1.0
Fen Dweller hace 6 años
padre
commit
342ac91861
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. +6
    -0
      macrovision.js

+ 6
- 0
macrovision.js Ver fichero

@@ -715,6 +715,7 @@ document.addEventListener("DOMContentLoaded", () => {
config.height = math.multiply(config.height, dir);
updateWorldOptions();
}
checkFitWorld();
updateSizes();
})
document.querySelector("body").appendChild(testCtx.canvas);
@@ -918,6 +919,11 @@ document.addEventListener("touchmove", (e) => {
}
}, { passive: false });

function checkFitWorld() {
if (config.autoFit) {
fitWorld();
}
}
function fitWorld() {
let max = math.unit(0, "meter");



Cargando…
Cancelar
Guardar