?remind 120h STOP USING console.log FOR LOGGING SHIT
This commit is contained in:
parent
eb07a77584
commit
fc7959737f
1 changed files with 0 additions and 4 deletions
|
@ -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", () => {
|
||||
|
|
Loading…
Reference in a new issue