diff --git a/source/code/windows.js b/source/code/windows.js index c7ab166..32a3484 100644 --- a/source/code/windows.js +++ b/source/code/windows.js @@ -49,8 +49,6 @@ class HippieTaskBar { onMouseMove(event) { if (this.isDragging) { - if (!this.isDragging) return; - const closestEdge = getClosestEdge(this.placeholder); const borderRadius = '4px'; const attributes = { @@ -121,7 +119,6 @@ class HippieTaskBar { if (event.target === this.placeholder) { console.debug('Drag mode disabled'); - if (!this.isDragging) return; this.isDragging = false; this.snapToEdges();