From c7a4045e8867d5d418a869729c998be77e871ec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Wed, 30 Jan 2013 15:25:34 +0100 Subject: [PATCH] Make click handler propagate touchend This commit is a follow-up on issue #294 and commit a6119f6. Our handlers should not prevent the bubbling up of browser events. This, for example, prevents Sencha Touch's longpress events from working properly. --- lib/OpenLayers/Handler/Click.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Handler/Click.js b/lib/OpenLayers/Handler/Click.js index a214373604..a54b1b7694 100644 --- a/lib/OpenLayers/Handler/Click.js +++ b/lib/OpenLayers/Handler/Click.js @@ -352,7 +352,7 @@ OpenLayers.Handler.Click = OpenLayers.Class(OpenLayers.Handler, { // 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); + OpenLayers.Event.preventDefault(evt); } this.handleDouble(evt); }