?remind 120h STOP USING console.log FOR LOGGING SHIT

This commit is contained in:
nin0dev 2024-07-29 16:23:10 -04:00
parent eb07a77584
commit fc7959737f

View file

@ -56,8 +56,6 @@ const {tabTitle} = Astro.props;
initialX = e.clientX;
initialY = e.clientY;
// Step 11: Update the element's new position by modifying its `top` and `left` CSS properties.
console.log(element.offsetTop);
console.log(currentX);
element.style.top = (element.offsetTop - currentY) + "px";
element.style.left = (element.offsetLeft - currentX) + "px";
}
@ -66,8 +64,6 @@ const {tabTitle} = Astro.props;
function stopDragging() {
document.onmouseup = null;
document.onmousemove = null;
console.log(element.offsetTop - currentY);
console.log(element.offsetLeft - currentX);
}
}
document.addEventListener("DOMContentLoaded", () => {