Hi,

The best way to trap the click and dblclick event is probably the Click 
Handler. Check the example:
http://openlayers.org/dev/examples/click-handler.html

Julien

PS: Firefox seems to always send 2 click events. Check the dblclick 
function here:
http://trac.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Handler/Click.js#L129

David R Robison wrote:
> I am trying to catch a click event to the map. I register to receive a 
> click with the following code:
> 
> this.map.events.register('click', this.map, dojo.lang.hitch(this, 
> this.processMapClick));
> 
> However, my click handler (processMapClick) is receiving click events 
> for both single and double clicks. Is there some way to prevent this or 
> at least detect which is which? The events look to be the same.
> 
> TNX David Robison
> 

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to