[OpenLayers-Users] Controls and map events

Eric Lemoine eric.c2c at gmail.com
Fri Jan 11 11:49:09 EST 2008


On Jan 11, 2008 2:49 PM, Attila Csipa <plists at prometheus.org.yu> wrote:
> On Thursday 10 January 2008 12:29:26 Eric Lemoine wrote:
> > Since pretty soon, the drag handler has a stopDown API property that
>
> Now that's what I call bleeding edge :)
>
> > one can set to allow/disallow event propagation. You can try to do
> > dragControl.dragHandler.stopDown = true. Currently, there's no way to
>
> OK, I'm a bit confused here: stopDown = true _allows_ or disallows event
> propagation ?

stopDown=true does stop event propagation.

> True is noted as the default and, interpreting the docs, stops
> (disallows) event propagation - (as the code itself is propagate
> = !this.stopDown;). From the svn log (and your message above) OTOH I'm under
> the impression it's the other way around.

Yes, the svn commit message seems wrong to me too.

> In any case (in mine DragHandler
> and a 'click' Map.Event above a feature), I've tried setting both true/false
> manually but that did not change much as (according to my admittedly poor
> firebug skills) the event still gets stopped in somebodys
> OpenLayers.Handler.Feature (maybe it needs a stopDown property, too, or
> modification to a common ancestor ?).

I'm having trouble following you here. Could you post some code?

> PS sorry if this is too technical, feel free to reply on -dev if it seems more
> appropriate.

I'll leave it here since the discussion started here. But this indeed
would have been more appropriate on dev.

--
Eric



More information about the Users mailing list