Przeglądaj źródła

Fix the world y-position not updating after zooming with the y-axis lock disabled

master
Fen Dweller 5 lat temu
rodzic
commit
dfde5f5771
1 zmienionych plików z 3 dodań i 3 usunięć
  1. +3
    -3
      macrovision.js

+ 3
- 3
macrovision.js Wyświetl plik

@@ -2759,12 +2759,12 @@ document.addEventListener("DOMContentLoaded", () => {
} else {
const dir = e.deltaY < 0 ? 10 / 11 : 11 / 10;
const change = config.height.toNumber("meters") - math.multiply(config.height, dir).toNumber("meters");
setWorldHeight(config.height, math.multiply(config.height, dir));
updateWorldOptions();

if (!config.lockYAxis) {
config.y += change / 2;
}
setWorldHeight(config.height, math.multiply(config.height, dir));
updateWorldOptions();

}
}


Ładowanie…
Anuluj
Zapisz