[OpenLayers-Users] Both single and double clicks on a map
Greg Ederer
greg at ergonosis.com
Mon Oct 20 16:02:25 EDT 2008
Ah, I see. Thanks!
Greg
Eric Lemoine wrote:
> Yes, use Handler.Click. There is a usage example in OpenLayers'
> examples dir. Eric
>
> 2008/10/20, Greg Ederer <greg at ergonosis.com>:
>
>> Hi,
>>
>> Double clicking on a map zooms, which is a nice built-in. I have also
>> registered a click event handler on a map, like so:
>>
>> map.events.register('click', map, function (e) {
>> ...
>> }
>>
>> The trouble is that when a user double clicks, both the click and double
>> click handlers get called. Is there a way to cancel the click behavior
>> when a double click occurs?
>>
>> Thanks!
>>
>> Greg
>>
>> --
>> | E R G O N O S I S
>> | Greg Ederer
>> | Lead Developer
>> | greg at ergonosis.com
>> | 360.774.6848
>> |
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
--
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| greg at ergonosis.com
| 360.774.6848
|
More information about the Users
mailing list