mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 18:13:05 +02:00
fix tablet menu selection issue
This commit is contained in:
parent
1c13f538f7
commit
0f3ac2831e
1 changed files with 4 additions and 3 deletions
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue