Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close map options on map click on mobile #40

Open
kylebarron opened this issue Jan 31, 2020 · 2 comments
Open

Close map options on map click on mobile #40

kylebarron opened this issue Jan 31, 2020 · 2 comments

Comments

@kylebarron
Copy link
Member

On mobile, it would be nice to close the options div whenever you click away from it. It seems like a simple way to do that is to add it to the map's onclick function (not onhover). And only apply on mobile...

@kylebarron
Copy link
Member Author

Looks like a standard way to tell if browsing from a mobile device.

https://stackoverflow.com/a/11381730

Then also can have map options expanded by default on desktop

@kylebarron
Copy link
Member Author

I tried this in 7c93fec but after testing it on my iPhone, it appeared to not detect that my iPhone XR was a mobile device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant