catalog: let native Scroll own navigation; start() is a no-op (Scroll registers Controller)

This commit is contained in:
Hermes committed 2026-08-08 22:33:07 +02:00
1 parent c6713090c1
commit 747b4b2daa
1 file changed
+3 -19
+3 -19
View File
@@ -135,26 +135,10 @@
return html;
};
// Required by ActivitySlide contract. Activates navigation the same way the
// native catalog (Main) does: Scroll owns focus/scroll, Controller just drives
// Navigator. Scroll auto-scrolls the focused card into view.
// Required by ActivitySlide contract. Navigation/focus/scroll are handled by
// the native Lampa.Scroll (it registers its own Controller and auto-scrolls).
// Back (Escape / remote) is handled via the keydown listener in create().
this.start = function () {
var started = false;
Lampa.Controller.add('content', {
toggle: function () {
var first = $('.mymovies .card.selector')[0];
if (first && !started) {
started = true;
Lampa.Controller.collectionFocus(first, $('.mymovies'));
}
},
left: function () { if (Navigator.canmove('left')) Navigator.move('left'); else Lampa.Controller.toggle('menu'); },
right: function () { Navigator.move('right'); },
up: function () { Navigator.move('up'); },
down: function () { Navigator.move('down'); },
back: function () { Lampa.Activity.backward(); }
});
Lampa.Controller.toggle('content');
};
// Build each card and append through the native Scroll (handles focus + scroll).