Skip to content

Commit

Permalink
zoom disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivamJoker committed Sep 13, 2019
1 parent b5016f5 commit 5531c94
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/icons/ios-icon.png" />

<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1.0,user-scalable=no"
/>
<meta name="theme-color" content="#e91e63" />
<meta
name="description"
Expand Down
5 changes: 5 additions & 0 deletions src/components/AppContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ const AppContainer = () => {

useEffect(() => {
checkDarkMode();

if (navigator.userAgent.match(/Android/i)) {
body.style.overscrollBehavior = "none";
// this is to disable pull refresh on android
}
}, []);

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/SettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { GlobalContext } from "../GlobalState";

export const useCheckDarkmode = () => {
const [{}, dispatch] = useContext(GlobalContext);
const [, dispatch] = useContext(GlobalContext);
const setThemeSelectValue = useCallback(
data => {
dispatch({ type: "setThemeSelectValue", snippet: data });
Expand Down
3 changes: 0 additions & 3 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
body {
overscroll-behavior: none;
}

.render-list-container {
position: relative;
Expand Down

0 comments on commit 5531c94

Please sign in to comment.