commit d1ae58dcc38bef4e0ac158d79309939a2b1f9278
parent 23264e3f2c4743655a02ebd9cf7fa7649ac509a0
Author: Hunter
Date:   Wed,  6 May 2026 17:48:58 -0400

bugfix: make dragging track to bottom of list work reliably

Diffstat:
Mresources/dev.js | 4++--
Mresources/styles.css | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/resources/dev.js b/resources/dev.js @@ -121,7 +121,7 @@ function beginDrag() { r.item.style.top = `${rect.top}px`; r.item.style.width = `${playlistRect.width}px`; r.item.style.height = `${rect.height}px`; - r.item.style.zIndex = '10'; + r.item.style.zIndex = '3'; document.body.appendChild(r.item); // Now we're actually dragging — disable pointer-events on the other items document.body.classList.add('reordering'); @@ -167,7 +167,7 @@ function positionDraggedItem() { const controlsRect = controls.getBoundingClientRect(); const desiredTop = r.lastClientY - r.offsetY; const minTop = wrapperRect.top; - const maxTop = controlsRect.top - r.itemHeight; + const maxTop = controlsRect.top - r.itemHeight / 2; const clampedTop = Math.max(minTop, Math.min(maxTop, desiredTop)); r.item.style.top = `${clampedTop}px`; diff --git a/resources/styles.css b/resources/styles.css @@ -75,7 +75,7 @@ body { left: 0; right: 0; box-sizing: border-box; - z-index: 3; + z-index: 4; pointer-events: none; }