Detect mousedown button on polyline

110 views
Skip to first unread message

Pil

unread,
Nov 13, 2012, 2:16:53 AM11/13/12
to Google Maps JavaScript API v3
Is there an official way to do that?

At the moment I'm using the property b (it's the second one) from the
MouseEvent object,
aka
google.maps.event.addListener(poly, "mousedown", function(evt) {

alert(evt.b.which);
});

But this isn't documented and therefore can change at any time without
notice.

Enoch Lau (Google Employee)

unread,
Nov 13, 2012, 3:18:31 AM11/13/12
to google-map...@googlegroups.com
No, there's currently no supported way to get the mouse buttons. Please file a feature request: http://code.google.com/p/gmaps-api-issues/issues/list
Reply all
Reply to author
Forward
0 new messages