From 4b20fac0c58bdc683361d138d3541354da8afa8b Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sat, 30 May 2020 18:52:36 -0400 Subject: [PATCH] Remove old resizing code that was moving stuff around --- macrovision.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/macrovision.js b/macrovision.js index abcf73f7..4101f6a1 100644 --- a/macrovision.js +++ b/macrovision.js @@ -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");