From: Andrew H. <ahh...@gm...> - 2010-07-26 13:47:07
|
Unless I am wrong, it's not possible to listen for "double click" what you need todo is record the first click's System.currentTimeMillis() in millisec, and then if the second arrives in a given time frame viola, you have a double click. On Mon, Jul 26, 2010 at 1:54 PM, Andrew Hughes <ahh...@gm...> wrote: > Hi Guys, > > At the moment, a MapClickListener looks like... > > MapClickListener() { > @Override > public void onClick(MapClickEvent mapClickEvent) { > > } > } > > But there appears to be nothing to distinguish single, double clicks in > gwt-openlayers... it does appear that openlayers supports this: > > http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Handler/Click-js.html#OpenLayers.Handler.Click.single > > Any idea's how this would be best added to gwt-openlayers? > > |