I didn't find a rightclick event in Leaflet markers so I started listening to the mousedown event. In the method that resolves this event I check
if (event.originalEvent.button == 2) { do_something(); // now i want to stop propagation of the rightclick return; } This does work in that do_something() is called, but the event propagates to the map and a contextmenu is being shown. How do I prevent the event to propagate to the map?
Does this work in all major (i.e. IE) browsers?
أكثر...
if (event.originalEvent.button == 2) { do_something(); // now i want to stop propagation of the rightclick return; } This does work in that do_something() is called, but the event propagates to the map and a contextmenu is being shown. How do I prevent the event to propagate to the map?
Does this work in all major (i.e. IE) browsers?
أكثر...