mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 02:56:42 +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() {
|
||||
setCurrentItemState("base state");
|
||||
|
||||
if((rowIndex + columnIndex) != count) {
|
||||
columnIndex = (columnIndex + 3 + 1) % 3
|
||||
var nextColumnIndex = (columnIndex + 3 + 1) % 3;
|
||||
var nextIndex = rowIndex + nextColumnIndex;
|
||||
if(nextIndex <= count) {
|
||||
columnIndex = nextColumnIndex;
|
||||
};
|
||||
setCurrentItemState("hover state");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue