Gallery improvements, better layout and autoplay of next media file.

This commit is contained in:
2023-11-20 17:51:34 +00:00
parent 4b49f454ba
commit 907fdb9baf
5 changed files with 137 additions and 66 deletions
-1
View File
@@ -118,7 +118,6 @@ defineExpose({
// Wrapping either end, just land outside the list
if (Math.abs(d) >= N || Math.sign(d) !== Math.sign(moveto - index)) moveto = N
}
console.log("Gallery cursorMove", d, index, moveto, moveto - index)
store.cursor = docs[moveto]?.key ?? ''
const tr = store.cursor ? document.getElementById(`file-${store.cursor}`) : ''
if (select) {