I know this is an old post, but I ran into the same problem and I found what I consider to be a better solution than the one suggested by @Anbarasan Thangapalam.
Decision:
var mousedUp = false;
google.maps.event.addListener(marker, 'mousedown', function(event){
mousedUp = false;
setTimeout(function(){
if(mousedUp === false){
}
}, 500);
});
google.maps.event.addListener(marker, 'mouseup', function(event){
mousedUp = true;
});
I think this approach can be better understood, with fewer lines of code and fewer listener functions.
- , mouseup dragstart. :
google.maps.event.addListener(marker, 'dragstart', function(event){
mousedUp = true;
});