Permalink
Browse files

stop the propagation of the event to the map and send it to get the o…

…riginal event in binded function
  • Loading branch information...
1 parent 70f1407 commit 4133e850fe4b6b50f34a3eaba51e60602206e207 @jbdemonte committed Mar 31, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 gmap3.js
View
@@ -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]);
})
);
}

0 comments on commit 4133e85

Please sign in to comment.