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

Long Tap (contextmenu) passed to map #267

Open
eliboni opened this issue Oct 20, 2019 · 0 comments
Open

Long Tap (contextmenu) passed to map #267

eliboni opened this issue Oct 20, 2019 · 0 comments

Comments

@eliboni
Copy link

eliboni commented Oct 20, 2019

a long tap on search form, for example to select&copy or to paste a value in a mobile device, is propagated to the below map triggering whatever action is mapped to map.on( "contextmenu" ...).

To avoid this, add

L.DomEvent.addListener(container, "contextmenu", function(e) {L.DomEvent.stopPropagation(e); } );

in onAdd: function(map) (line 1417, Control.Geocoder.js 1.10.0)

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