catalog nav: rely on native Navigator for arrows (remove manual move handlers); only set focus once
This commit is contained in:
1 parent
1ad2eb5d16
commit
6d3e4cb021
1 file changed
-7
@@ -108,13 +108,6 @@
|
||||
Lampa.Controller.collectionSet(g);
|
||||
if (first) Lampa.Controller.collectionFocus(cards[0], g);
|
||||
},
|
||||
right: function () { Navigator.move('right'); },
|
||||
left: function () {
|
||||
if (Navigator.canmove('left')) Navigator.move('left');
|
||||
else Lampa.Controller.toggle('menu');
|
||||
},
|
||||
up: function () { Navigator.move('up'); },
|
||||
down: function () { Navigator.move('down'); },
|
||||
enter: function () {
|
||||
var el = g.find('.card.selector.focus')[0] || cards[0];
|
||||
if (!el) return;
|
||||
|
||||
Reference in new issue
Block a user