fix Don't let the browser zoom on the page on dbl click, r=erilem (closes #3209)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11795 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Stéphane Brunner
2011-03-30 14:29:28 +00:00
parent a84c6b9302
commit 7a29b2d324

View File

@@ -346,6 +346,10 @@ OpenLayers.Handler.Click = OpenLayers.Class(OpenLayers.Handler, {
// already received a click
if (this.last.touches && this.last.touches.length === 1) {
// touch device, no dblclick event - this may be a double
if (this["double"]) {
// on Android don't let the browser zoom on the page
OpenLayers.Event.stop(evt);
}
this.handleDouble(evt);
}
// if we're not in a touch environment we clear the click timer