Przeglądaj źródła

Remove old resizing code that was moving stuff around

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

+ 0
- 10
macrovision.js Wyświetl plik

@@ -1330,19 +1330,9 @@ function handleResize() {

const change = oldCanvasWidth / canvasWidth;

doHorizReposition(change);

updateSizes();
}

function doHorizReposition(change) {
Object.keys(entities).forEach(key => {
const element = document.querySelector("#entity-" + key);
const x = element.dataset.x;
element.dataset.x = (x - 0.5) * change + 0.5;
});
}

function prepareSidebar() {
const menubar = document.querySelector("#sidebar-menu");



Ładowanie…
Anuluj
Zapisz