takhamo123 / jquery-ui-map

Automatically exported from code.google.com/p/jquery-ui-map
0 stars 0 forks source link

rightclick event problem #52

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. When i add this event handler to debug the right click event 

$('#map_canvas').gmap().addEventListener('rightclick', function()  
{console.log("rightclick");});

it doesn't work. If i however change 'rightclick' to 'click' it works.
Any ideas? Is anybody else facing problems with the rightclick events ?

Thanks in advance

Original issue reported on code.google.com by mpillia...@gmail.com on 10 Jun 2012 at 1:30

GoogleCodeExporter commented 8 years ago
rightclick doesn't work in my project. I use:

$('#map_canvas').gmap().bind("mousedown", function(e){ 
 if (e.button==2) { console.log('rightclick'); } 
});

and work for me.

Original comment by dhe...@gmail.com on 7 Sep 2012 at 9:54