Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
stop the propagation of the event to the map and send it to get the o…
Browse files Browse the repository at this point in the history
…riginal event in binded function
  • Loading branch information
jbdemonte committed Mar 31, 2012
1 parent 70f1407 commit 4133e85
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gmap3.js
Expand Up @@ -1764,13 +1764,15 @@
$.each( ("dblclick click mouseover mousemove mouseout mouseup mousedown").split(" "), function( i, name ) {
listeners.push(
google.maps.event.addDomListener($div[0], name, function(e) {
google.maps.event.trigger(that, name);
$.Event(e).stopPropagation();
google.maps.event.trigger(that, name, [e]);
})
);
});
listeners.push(
google.maps.event.addDomListener($div[0], "contextmenu", function(e) {
google.maps.event.trigger(that, "rightclick");
$.Event(e).stopPropagation();
google.maps.event.trigger(that, "rightclick", [e]);
})
);
}
Expand Down

0 comments on commit 4133e85

Please sign in to comment.