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

Prevent default action when opening layers control #638

Merged
merged 1 commit into from
Jun 18, 2012

Conversation

jacobtoye
Copy link
Member

When opening the layers control for touch browsers the default action for clicking the <a /> is not prevented. This causes a # to be added to the address bar.

@smeijer
Copy link
Contributor

smeijer commented May 1, 2012

Is this fix confirmed? It doesn't seem to work on android (DolphinBrowser).

@jacobtoye
Copy link
Member Author

Sorry I don't have an android device to test. It works on the iPad. It uses the same code as L.Control.Zoom (https://github.com/CloudMade/Leaflet/blob/master/src/control/Control.Zoom.js#L21).

@jacobtoye
Copy link
Member Author

@mourner Any reason this is not been merged?

mourner added a commit that referenced this pull request Jun 18, 2012
Prevent default action when opening layers control
@mourner mourner merged commit a287a6f into Leaflet:master Jun 18, 2012
@mourner
Copy link
Member

mourner commented Jun 18, 2012

@jacobtoye no reason except lack of time :)

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

Successfully merging this pull request may close these issues.

3 participants