openlayers/openlayers — pull request #93 by fredj (2011-12-07 08:29:36+00:00)
Title: mobile: responsive button

On mobile devices, the click event is not immediately triggered: the browser will wait approximately 300ms from the time that you tap the button to fire the click event. The reason for this is that the browser is waiting to see if you are actually performing a double tap.

We can observe this behavior in our mobile examples for the zoomin / zoomout buttons: http://goo.gl/mrqYH

Listening to the touchstart event instead of the click event solves this issue, demo: http://goo.gl/PmrwT

See: http://code.google.com/intl/fr/mobile/articles/fast_buttons.html