On Fri, Sep 14, 2007 at 06:45:22AM -0700, jonz wrote:
>
> Yes, I had seen the navtoolbar example and the behaviour is as I would like.
> Unfortunately, and I couldn't figure out why, that's not exactly what
> happens with my map.
>
> click on dragZoom
> click again on dragZoom
> Zooms in one level
It sounds like you're not stopping mousedown when the user clicks.
OpenLayers.Event.observe(controls[i].panel_div, "mousedown",
OpenLayers.Event.stop.bindAsEventListener());
is from Control.Panel and should fix it.
Regards,
--
Christopher Schmidt
MetaCarta
_______________________________________________
Dev mailing list
[email protected]
http://openlayers.org/mailman/listinfo/dev