Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Cant Scroll on Android


RecapRabbitHole
Go to solution Solved by paul2009,

Question

Site URL: https://www.recaprabbithole.com/recap/human-viruses

I cant scroll on android phones. I am using some custom CSS, that @tuanphan helped create (thank you!),  to make images stretch across the entire screen on my blog posts, here:

@media screen and (max-width:767px) {
/*This stretches the everything across the screen on the blog posts*/
/* make image fullwidth */
.blog-item-wrapper article.entry {
    padding-left: 0;
    padding-right: 0;
}
/* Add padding around text blocks, both sides, leaving out, image/gallery/embed - blocks */
.blog-item-wrapper .sqs-layout>.row>.col>div:not(.image-block, .gallery-block, .embed-block) {
    padding-left: 9vw;
    padding-right: 9vw;
}
/*This code fixes the iphone horizontal scrolling, but stops all scrolling on androids*/
 html, body {
   overflow: hidden;
}
}

I know the piece of code that is causing the issue:

/*This code fixes the iphone horizontal scrolling, but stops all scrolling on androids*/
 html, body {
   overflow: hidden;
}

But without this code above, the mobile site has a black bar on the right-hand side, allowing strange horizontal scrolling on iPhones, see attached video for issue without red code.

How should I revise this code, to allow scrolling on android phones?

@paul2009 Do you have any thoughts?

 

 

Edited by RecapRabbitHole
Link to post
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Posts

If you are experiencing overflow (the extra black area to the right) you are usually better off finding the cause, than adding workarounds. That said, the code above is incorrect and the cause of the

Thanks for the quick reply. I have revised  overflow-x: hidden Found the issue, problematic CSS elsewhere:     html {     overflow-x: initial !important;   }   @paul2009 thanks

2 answers to this question

Recommended Posts

  • 0

If you are experiencing overflow (the extra black area to the right) you are usually better off finding the cause, than adding workarounds. That said, the code above is incorrect and the cause of the no-scroll issue. It should be 

overflow-x: hidden

not 

overflow: hidden

 

Edited by paul2009

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company helping Squarespace users by building the features that Squarespace didn't include.
Explore our range of Squarespace Extensions, including the Wishlist, and Datepicker Extension or book a Squarespace Expert for 1:1 help. Note that links in my posts may be affiliate links.

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...