From ae30a7fc76f6dd95d71a6f1a281b396cb26c4397 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 14 Jul 2024 23:54:18 +0100 Subject: [PATCH] help --- src/static/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/index.js b/src/static/index.js index 5138bee..26e90e6 100644 --- a/src/static/index.js +++ b/src/static/index.js @@ -30,7 +30,7 @@ function handle_move_dir(dir, event) { return false; } - if(target_i === 0 || target_i === el_tbody.childNodes.length - 1) { + if((target_i === 0 && dir === "up") || (target_i === el_tbody.childNodes.length - 1 && dir === "down")) { console.info(`Suppressing out-of-bounds move for i`, target_i, `el`, el_tr_target); return; }