The "click shade" on gmaps embeds is đź’Ż

AI-generated summary

The discussion highlights a clever UI detail in Discourse where an invisible “click shade” overlays Google Maps embeds, allowing users to scroll past the map until they click to interact with it riking. However, several users reported compatibility issues. codinghorror and techAPJ noted a large blank space appearing in the embed on mobile Safari across various devices, including iPads and MacBooks, though it functions correctly on iPhone 6. Additionally, sam observed that Chrome on the iPad sometimes redirects users directly to the native Google Maps app instead of loading the embed, a behavior riking found surprising. codinghorror confirmed this did not occur on an iPad Pro. sam clarified that the redirect issue is specific to iPad Chrome when the Google Maps app is installed. techAPJ suggested this behavior is likely due to iOS 9’s Universal Links feature, which allows apps to intercept web links and open them natively, referencing a related TechCrunch article on the topic.

Continuing the discussion from Embedding custom created Google Maps:

One more tiny, awesome detail of Discourse: Because gmaps embeds capture mousewheel events, there’s an invisible shade over the embed that you need to click to remove. Click or tap once, and it’s usable. Don’t click or tap, and you can scroll on by.

Here, test it out:

4 Likes

Big giant blank spot on mobile safari though.

3 Likes

Yes, I can repro this on my MacBook (OS X 10.11.3) and iPad mini (iOS 9.3) Safari browser (works fine on iPhone 6 safari though). Added on my list. :pencil:

1 Like

Chrome on iPad does some real strange stuff when you visit this topic, takes me direct to the google maps app

2 Likes

oh, wow.

That’s probably because of some behavior with the iframe, but.. wow.

Did not do that for me on iPad Pro.

Only in Ipad chrome if google maps is also installed

3 Likes

This maybe because of:

With iOS 9, Apple introduced Universal Links, a brand new way to handle links with native apps. App developers, such as YouTube, can register domain names to open web links directly into an app, bypassing Safari.

2 Likes