You can also register a click handler, and stop the double click event from propagating.<br><br><a href="http://openlayers.org/dev/examples/click.html">http://openlayers.org/dev/examples/click.html</a><br><br>Here is a quick example I modified from code : <br>
<br>OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {                <br>    defaultHandlerOptions: {<br>        &#39;single&#39;: true,<br>        &#39;double&#39;: true,<br>        &#39;pixelTolerance&#39;: 0,<br>
        &#39;stopSingle&#39;: false,<br>        &#39;stopDouble&#39;: false<br>    },<br><br>    initialize: function(options) {<br>        this.handlerOptions = OpenLayers.Util.extend(<br>            {}, this.defaultHandlerOptions<br>
        );<br>        OpenLayers.Control.prototype.initialize.apply(<br>            this, arguments<br>        ); <br>        this.handler = new OpenLayers.Handler.Click(<br>            this, {<br>                &#39;dblclick&#39;: function(e){ <br>
                    this.handler.stopDouble = true;<br>                }<br>            }, this.handlerOptions<br>        );<br>    }<br>});<br><br>Lennox<br><br><div class="gmail_quote">On Tue, Jul 20, 2010 at 9:01 AM, Piero Campa <span dir="ltr">&lt;<a href="mailto:piero.campa@gmail.com">piero.campa@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Sorry, I made a mistake in the javascript include.<br>
It works.<br>
Piero<br>
<font color="#888888">--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/disable-double-click-tp1824832p5316506.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/disable-double-click-tp1824832p5316506.html</a><br>

</font><div><div></div><div class="h5">Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>