fix exception when navigating decks on mobile browsers #3539

This commit is contained in:
Hakim El Hattab committed 2023-11-30 08:41:32 +01:00
1 parent 9d491c6d2f
commit bf285afcf2
5 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -801,8 +801,8 @@ export default class ScrollView {
if( page.active ) {
page.active = false;
page.slideElement.classList.remove( 'present' );
page.backgroundElement.classList.remove( 'present' );
if( page.slideElement ) page.slideElement.classList.remove( 'present' );
if( page.backgroundElement ) page.backgroundElement.classList.remove( 'present' );
}