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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user