I have tried to add a Spatial Navigation to my apps on KaiOS
, but I can't achieve it.
The Page has very low information.
Example, when I add the following code:
function nav(move) {
var next = currentIndex + move;
var items = document.querySelectorAll('.items');
var targetElement = items[next];
targetElement.focus();
}
I get this error:
currentIndex is not defined
Maybe you have some working example with Spatial Navigation?