fix: use Background.change() (native full-page path) instead of immediately()
This commit is contained in:
1 parent
6c3e9c1866
commit
d305f8e2bf
1 file changed
+6
-5
@@ -341,7 +341,7 @@
|
||||
this.destroy = function () {
|
||||
// Let Lampa clear the background natively.
|
||||
try {
|
||||
if (Lampa.Background && Lampa.Background.immediately) Lampa.Background.immediately('');
|
||||
if (Lampa.Background && Lampa.Background.change) Lampa.Background.change('');
|
||||
} catch (e) {}
|
||||
};
|
||||
|
||||
@@ -370,7 +370,7 @@
|
||||
back: function () {
|
||||
// Let Lampa clear the background natively (matches built-in pages).
|
||||
try {
|
||||
if (Lampa.Background && Lampa.Background.immediately) Lampa.Background.immediately('');
|
||||
if (Lampa.Background && Lampa.Background.change) Lampa.Background.change('');
|
||||
} catch (e) {}
|
||||
Lampa.Activity.backward();
|
||||
},
|
||||
@@ -407,13 +407,14 @@
|
||||
// controller or steal focus once it's already set.
|
||||
apply();
|
||||
// Use Lampa's native background (canvas blur + fade), exactly like a
|
||||
// built-in movie page. Do NOT touch .background via CSS — Lampa owns it.
|
||||
// built-in movie page. Native full pages call Background.change(),
|
||||
// not immediately() (which is throttled and can no-op on open).
|
||||
try {
|
||||
var dm = resolveMovie((comp.activity && comp.activity.object) || selected);
|
||||
var bg = resolve(dm.img || dm.poster || dm.cover);
|
||||
console.log('[mymovies] bg=', bg);
|
||||
if (bg && Lampa.Background && Lampa.Background.immediately) {
|
||||
Lampa.Background.immediately(bg);
|
||||
if (bg && Lampa.Background && Lampa.Background.change) {
|
||||
Lampa.Background.change(bg);
|
||||
}
|
||||
} catch (e) { console.log('[mymovies] bg err', e); }
|
||||
if (!$('.mymovies-detail .full-start-new__buttons .full-start__button.selector').length) {
|
||||
|
||||
Reference in new issue
Block a user