Merge pull request #3618 from thornbill/fix-backdrop-mobile

Fix backdrop being used on large screens in mobile layout
This commit is contained in:
Bill Thornton 2022-05-05 16:01:34 -04:00 committed by GitHub
commit f2c27dc1b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -509,7 +509,7 @@ function setTrailerButtonVisibility(page, item) {
} }
function renderBackdrop(item) { function renderBackdrop(item) {
if (dom.getWindowSize().innerWidth >= 1000) { if (!layoutManager.mobile && dom.getWindowSize().innerWidth >= 1000) {
backdrop.setBackdrops([item]); backdrop.setBackdrops([item]);
} else { } else {
backdrop.clearBackdrop(); backdrop.clearBackdrop();