Mobile version freezes

Solved
dlaurie
Tourist
11 0 1

Hi everyone... I am having problems with the mobile version of my website - visit www.ContemporaryAccentFurniture.com

If you add a product to the cart, the site freezes. You can't scroll up or down or do anything. 

Any suggestions on how to fix this? 

Thanks guys!

 

0 Likes
Prabhat
Shopify Expert
74 5 14

This is an accepted solution.

Well I found the issue to be simple 
In your theme click on Edit code > Assets > App.js 
Find the below line of code and comment it all 

//block scrolling on mobile
                if ($(window).width() <= 798) {
                  var $cart_container = $(this).parent();
                  if($cart_container.hasClass('active_link')) {
                    $('body').addClass('blocked-scroll');
                  } else {
                    $('body').addClass('blocked-scroll');
                  }
                }


 And replace it with this 

//block scrolling on mobile
                /* if ($(window).width() <= 798) {
                  var $cart_container = $(this).parent();
                  if($cart_container.hasClass('active_link')) {
                    $('body').addClass('blocked-scroll');
                  } else {
                    $('body').addClass('blocked-scroll');
                  }
                } */

// Commenting whole code 
Solution Expert
- Did I solved your issue? Like & Mark As Solution to help the community
0 Likes
dlaurie
Tourist
11 0 1

Oh!! It actually worked! Thanks so much! 

0 Likes
MF16
New Member
2 0 0

Hi, I am hearing from my viewers that my website freezes and glitches I check myself and on mobile when you try to scroll down it doesn’t let you. How can I fix this? 

0 Likes
SelfIdentity
Tourist
9 0 1

hi would anyone be able to help, the mobile version on my product page constantly freezes when a new variant is selected. 

a losing icon just stays on my screen here a link https://www.selfidentity.co.uk/products/closure?variant=22776704991290

thank you 

0 Likes