From 9696442a9159a4231c986f51d3805cf692a869fd Mon Sep 17 00:00:00 2001 From: sthag Date: Mon, 9 Feb 2026 19:09:02 +0100 Subject: [PATCH] feat: Remove cases that cannot happen Optimize HippieTaskBar by removing cases that cannot happen. --- source/code/windows.js | 3 --- 1 file changed, 3 deletions(-) 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();