Browse Source

Formatting

pull/276/head
pythongosssss 2 years ago
parent
commit
722801ed2d
  1. 6
      web/scripts/ui.js

6
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(

Loading…
Cancel
Save