From 50becafef717a7320f0472715943279427fb4838 Mon Sep 17 00:00:00 2001 From: gopienkonikita Date: Fri, 24 Sep 2021 15:07:44 +0300 Subject: [PATCH] Fixed Bug 52642 - Android.Docs.Mobile. Fixed orientation change for mobile Firefox --- packages/asc-web-common/components/PageLayout/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/asc-web-common/components/PageLayout/index.js b/packages/asc-web-common/components/PageLayout/index.js index a49c665599..d8d06b7996 100644 --- a/packages/asc-web-common/components/PageLayout/index.js +++ b/packages/asc-web-common/components/PageLayout/index.js @@ -117,10 +117,11 @@ class PageLayout extends React.Component { const isPortrait = isFirefox && isMobileOnly && - screen.orientation.type === "landscape-primary"; + screen.orientation.type === "portrait-primary"; if ((!isEnoughWidth && isValueExist) || isPortrait) { this.backdropClick(); + return; } if (isEnoughWidth && isValueExist) { this.pinArticle();