[OpenLayers-Dev] Touch events do not trigger the defalut action in attribution links

Marc Jansen jansen at terrestris.de
Tue Jul 31 07:34:27 PDT 2012

Hi all,

I stumbled upon an IMHO unwanted behaviour in OpenLayers when it is 
being accessed with devices that issue touch events (smartphones and 
tablets both with iOS or Android):

When an attribution of a layer contains a link (an <a 
href="http://example.com/">Text</a>) the link does not work, e.g. it 
does not follow the links href and does not open the appropriate URL.

This can easily be observed in the online examples, e.g. here: 
http://openlayers.org/dev/examples/osm.html (the link to the osm page is 
not functional on touch devices).

The behaviour can also be observed from mwithin Chrome when the 
"User-Agent" setting " Emulate touch events" of the developer toolbar is 

I would consider this behaviour a bug and would like to hear your opinions.

The IMHO wrong behaviour was introduced after 2.11, as the example 
http://dev.openlayers.org/releases/OpenLayers-2.11/examples/osm.html is 
working as expected.

If needed I can file an issue on github.

Best regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20120731/518121bb/attachment.html>

More information about the Dev mailing list