Jump to content

Full width map stops scroll on mobile?

Recommended Posts

Site URL: https://bulldog-circle-xzyr.squarespace.com/locations

I've got the page mostly how I want it, however I'm running into some hiccups. I'm not a coder by any means, and barely know CSS/HTML. I know enough to get my hands dirty.

The problem I have is that when you view the page on mobile, and you scroll down enough to the Google map, it interrupts the user's ability to continue scrolling, rather it just moves the map around. Is there any way to allow people to keep scrolling and still interact with the locations on the map? Maybe use two fingers to navigate and zoom?

I saw a piece of code somewhere that said you can maybe use this:
 

var map = L.map('map', { dragging: !L.Browser.mobile, tap: !L.Browser.mobile });

But I'm not sure where or how to incorporate it, or if it would even work with what I have currently.

Additionally, for bonus points, there is some padding occurring on the right side of the web page that I can't figure out how to get rid of. Any tips for that?

Link to comment
  • Replies 0
  • Views 161
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.