diff --git a/index.html b/index.html
index babb48a..cd3edb2 100644
--- a/index.html
+++ b/index.html
@@ -574,6 +574,7 @@ let tracks = [];
let currentIndex = -1;
let selectedIndices = new Set();
let anchorTrack = null;
+let pendingNextIndex = -1;
let dragIndices = null;
let dirHandle = null;
const addFolderBtn = document.getElementById('addFolderBtn');