[OpenLayers-Commits] r11795 -
trunk/openlayers/lib/OpenLayers/Handler
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Wed Mar 30 10:29:29 EDT 2011
Author: sbrunner
Date: 2011-03-30 07:29:28 -0700 (Wed, 30 Mar 2011)
New Revision: 11795
Modified:
trunk/openlayers/lib/OpenLayers/Handler/Click.js
Log:
fix Don't let the browser zoom on the page on dbl click, r=erilem (closes #3209)
Modified: trunk/openlayers/lib/OpenLayers/Handler/Click.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Handler/Click.js 2011-03-30 14:26:21 UTC (rev 11794)
+++ trunk/openlayers/lib/OpenLayers/Handler/Click.js 2011-03-30 14:29:28 UTC (rev 11795)
@@ -346,6 +346,10 @@
// 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
More information about the Commits
mailing list