From 722801ed2da85478863a1fb9950450897eb7b0b6 Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Thu, 30 Mar 2023 20:15:48 +0100 Subject: [PATCH] Formatting --- web/scripts/ui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/scripts/ui.js b/web/scripts/ui.js index 194d8e2..587f4e5 100644 --- a/web/scripts/ui.js +++ b/web/scripts/ui.js @@ -66,7 +66,6 @@ function dragElement(dragEl, settings) { function positionElement() { const halfWidth = document.body.clientWidth / 2; - const anchorRight = newPosX + dragEl.clientWidth / 2 > halfWidth; // set the element's new position: @@ -77,8 +76,9 @@ function dragElement(dragEl, settings) { dragEl.style.left = newPosX + "px"; dragEl.style.right = "unset"; } - dragEl.style.top = newPosY + "px"; - dragEl.style.bottom = "unset"; + + dragEl.style.top = newPosY + "px"; + dragEl.style.bottom = "unset"; if (savePos) { localStorage.setItem(