fix tablet menu selection issue

This commit is contained in:
Dante Ruiz 2017-01-18 17:20:42 +00:00
parent 1c13f538f7
commit 0f3ac2831e

View file

@ -222,9 +222,10 @@ Item {
} }
function nextItem() { function nextItem() {
setCurrentItemState("base state"); setCurrentItemState("base state");
var nextColumnIndex = (columnIndex + 3 + 1) % 3;
if((rowIndex + columnIndex) != count) { var nextIndex = rowIndex + nextColumnIndex;
columnIndex = (columnIndex + 3 + 1) % 3 if(nextIndex <= count) {
columnIndex = nextColumnIndex;
}; };
setCurrentItemState("hover state"); setCurrentItemState("hover state");
} }