In my application, all default functionality is disabled with:
disableDefaultUI: true
and click is bind to placeMarker function.
mapObj.addListener('click',
(event) => {
this.placeMarker(event.latLng) // creates a marker, works fine.
}
)
What I try to achieve is, I want to zoom map when I dblclick (as in default functionality) but I don't want click listener to fire when I double-click.
mapObj.addListener('dblclick',
(event) => {
console.log("This doesn't fire when I double click")
// I expect only this to fire.
}
)
This doesn't fire when I double click but click listener functionality works instead.