[OpenLayers-Users] Controls and map events

Attila Csipa plists at prometheus.org.yu
Sat Jan 12 20:02:18 EST 2008


On Saturday 12 January 2008 14:40:25 Eric Lemoine wrote:
> Setting the drag handler's stopDown property to false won't help you
> because the event you want to get "click" not "mousedown". Anyhow the

D'oh, right ! (this is where slight forehead slapping takes place on my part).

> So apply the patch and replace
> drag.dragHandler.stopDown = false;
> with
> drag.featureHandler.stopHandledClick = false;
> Hope this helps,

Works like a charm.

> PS: if you'd like to quickly see this patch included in the trunk,
> feel free to open a ticket in the trac, complement my patch with
> tests, and attach the patch to the ticket. That'd be a good first code
> contribution to OpenLayers ;-)

Fair enough ;-) Submitted and awaiting review !

http://trac.openlayers.org/ticket/1266



More information about the Users mailing list