correct off-by-one

pull/1/head
ansuz 8 years ago
parent 3a338e0890
commit 6471b572eb

@ -400,7 +400,7 @@ define([
if (length === 0) { return; } if (length === 0) { return; }
// List mode // List mode
if (getViewMode() === "list") { if (getViewMode() === "list") {
if (e.which === 40) { click($elements.get(Math.min(lastIndex+1, length))); } if (e.which === 40) { click($elements.get(Math.min(lastIndex+1, length -1))); }
if (e.which === 38) { click($elements.get(Math.max(lastIndex-1, 0))); } if (e.which === 38) { click($elements.get(Math.max(lastIndex-1, 0))); }
return; return;
} }

Loading…
Cancel
Save