help
This commit is contained in:
parent
47b446b4e6
commit
ae30a7fc76
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue