nav: fix detail controller - left->menu, up->head (native Lampa behaviour) to avoid getting stuck
This commit is contained in:
1 parent
10285e7c14
commit
381bdd8d62
1 file changed
+9
-1
@@ -345,7 +345,15 @@
|
||||
Lampa.Activity.backward();
|
||||
},
|
||||
right: function () { Navigator.move('right'); },
|
||||
left: function () { Navigator.move('left'); },
|
||||
left: function () {
|
||||
if (Navigator.canmove('left')) Navigator.move('left');
|
||||
else Lampa.Controller.toggle('menu');
|
||||
},
|
||||
up: function () {
|
||||
if (Navigator.canmove('up')) Navigator.move('up');
|
||||
else Lampa.Controller.toggle('head');
|
||||
},
|
||||
down: function () { Navigator.move('down'); },
|
||||
enter: function () {
|
||||
var el = $('.mymovies-detail .full-start-new__buttons .full-start__button.selector.focus')[0] || btns[0];
|
||||
if (!el) return;
|
||||
|
||||
Reference in new issue
Block a user