From b07bdaa46a670248c1583203e751efa6a904f0ae Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Wed, 6 Jul 2022 23:16:08 +0530 Subject: [PATCH] update threshold for detecting zoom --- src/components/App.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index b23b36a17e..42e24baded 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -922,9 +922,7 @@ class App extends React.Component { const scrollBarWidth = 10; const widthRatio = (window.outerWidth - scrollBarWidth) / window.innerWidth; - const isBrowserZoomed = - // Device pixel ratio is 2 when zoom is 100% - window.devicePixelRatio !== 2 || widthRatio < 0.9 || widthRatio > 1; + const isBrowserZoomed = widthRatio < 0.75 || widthRatio > 1.1; if (isBrowserZoomed) { this.setToastMessage(t("alerts.browserZoom")); } else {