fix: clear background on back press (before transition), native-like

This commit is contained in:
Hermes committed 2026-08-10 01:26:04 +02:00
1 parent cac0f4169b
commit 1a8f7abaf3
1 file changed
+12
+12
View File
@@ -376,6 +376,18 @@
}
},
back: function () {
// Clear our CSS background immediately (before the
// back transition), matching native Lampa behaviour.
try {
var bgel = document.querySelector('.background');
if (bgel) {
bgel.style.backgroundImage = '';
bgel.style.filter = '';
bgel.style.transform = '';
bgel.style.opacity = '';
}
if (Lampa.Background && Lampa.Background.immediately) Lampa.Background.immediately('');
} catch (e) {}
Lampa.Activity.backward();
},
right: function () { Navigator.move('right'); },