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; }