Endless Scrolling causes troubles with mobile Navigation

Hey folks.

After I installed the costum code for a continuous looping page like this: http://www.thefourthphase.com
My mobile Navigation doesn’t expand anymore. The menu button is still there, but it does not show the menu.

I think the code cross path with some webflow code or features. So maybe someone can help me.

Btw. this ist the costum code I’ve entered in the :


<script>
$('document').ready(function() {
      var origDocHeight = document.body.offsetHeight;
      $("body").contents().clone().appendTo("body");
      $(document).scroll(function(){
          var scrollWindowPos = $(document).scrollTop(); 
          if(scrollWindowPos >= origDocHeight ) { 
              $(document).scrollTop(0); 
          }       
      });
  }); 
</script> 

Thanks in advance.
Micha

…oh…I’ve seen that the code was cut out. So here is a pic.

I’ve seen another issue in my post. They’ve updated the page (The fourth phase). U can check the infinite scrolling here: jxsn.webflow.io

Hi @mjerxsen, the issue with the menu button may or may not be with the custom code, but to be certain, is it possible for you to share the read-only link to your site? Share a read-only link | Webflow University

Thanks in advance!

Hi

https://preview.webflow.com/preview/jxsn?preview=989672af4507de59c291517613d16ff0

There it is. Thanks for response.

Hey!

I’ve shared the link. Could you find any solution?

Greetings from Germany

Ok, seems to be a indifferent or insoluble issue. Hope someone can give me a hint sometime. :slightly_smiling:

Greetings
Michael (who still hopes)

Hi @mjerxsen, thanks for following up, I am sorry for the delay, sometimes code issues can take some time to resolve as webflow built in features not using custom code take priority.

I will take a look to see if I can find anything new with this. As soon as I have some info, I will post back with an update.