From 37022ec39174b0a7a0eadcb51149923001e6cb6a Mon Sep 17 00:00:00 2001 From: subnub Date: Fri, 15 May 2020 03:43:04 -0400 Subject: [PATCH] Added mobile check to scroll event --- src/components/MainSection/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/MainSection/index.js b/src/components/MainSection/index.js index d6b1b61..e487569 100644 --- a/src/components/MainSection/index.js +++ b/src/components/MainSection/index.js @@ -59,6 +59,8 @@ class MainSectionContainer extends React.Component { scrollEvent = (e) => { + if (!mobileCheck()) return; + const scrollY = window.pageYOffset; const windowY = document.documentElement.scrollHeight;