This commit is contained in:
Starbeamrainbowlabs 2024-07-14 23:54:18 +01:00
parent 47b446b4e6
commit ae30a7fc76
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -30,7 +30,7 @@ function handle_move_dir(dir, event) {
return false; 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); console.info(`Suppressing out-of-bounds move for i`, target_i, `el`, el_tr_target);
return; return;
} }