Fix: arrow key img selector(reversed)

This commit is contained in:
Cutls 2019-08-14 00:23:05 +09:00
parent 4347f55077
commit 66645982e9

View File

@ -138,7 +138,7 @@ $(function ($) {
if (e.code == "ArrowLeft") { if (e.code == "ArrowLeft") {
//left //left
if ($("#imagemodal").hasClass("open")) { if ($("#imagemodal").hasClass("open")) {
imgCont('next'); imgCont('prev');
return false; return false;
} }
if (selectedColumn > 0) { if (selectedColumn > 0) {
@ -159,7 +159,7 @@ $(function ($) {
} else if (e.code == "ArrowRight") { } else if (e.code == "ArrowRight") {
//right //right
if ($("#imagemodal").hasClass("open")) { if ($("#imagemodal").hasClass("open")) {
imgCont('prev'); imgCont('next');
return false; return false;
} }
if (selectedColumn < $(".tl-box").length - 1) { if (selectedColumn < $(".tl-box").length - 1) {