You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey could you please add for the clickListener of the marker the event ,because
the event passed is null :
if (variables.containsKey("click")) {
fireEvent(new ClickEvent(this, null));
}
So we cant detect if the event was a right click or double click , I think you
should do this :
if (variables.containsKey("click")) {
MouseEventDetails evt = MouseEventDetails
.deSerialize((String) variables.get("click"));
fireEvent(new ClickEvent(this, evt));
}
cheers,
Amine
Original issue reported on code.google.com by [email protected] on 10 Jul 2012 at 2:43
The text was updated successfully, but these errors were encountered:
So that we can use the event to define wich type is :
marker.addClickListener(new ClickListener() {
public void click(ClickEvent event) {
if(event.isDoubleClick()){
//do action
}else if (event.getButton() == ClickEvent.BUTTON_RIGHT){
//do action
}else {
//do action
}
}
}
Original issue reported on code.google.com by
[email protected]
on 10 Jul 2012 at 2:43The text was updated successfully, but these errors were encountered: