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

Andreas Hocevar ahocevar at opengeo.org
Tue Jul 31 09:23:37 PDT 2012

I would also consider this a bug. Please create a ticket.

A potential fix would involve not calling preventDefault on
mousedown/touchdown events unconditionally.


On Tue, Jul 31, 2012 at 4:34 PM, Marc Jansen <jansen at terrestris.de> wrote:
> 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 activated.
> 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,
> Marc
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev

Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

More information about the Dev mailing list