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.
This commit is contained in:
Éric Lemoine
2013-01-30 15:25:34 +01:00
parent 4dd76e0c74
commit c7a4045e88

View File

@@ -352,7 +352,7 @@ OpenLayers.Handler.Click = OpenLayers.Class(OpenLayers.Handler, {
// touch device, no dblclick event - this may be a double // touch device, no dblclick event - this may be a double
if (this["double"]) { if (this["double"]) {
// on Android don't let the browser zoom on the page // on Android don't let the browser zoom on the page
OpenLayers.Event.stop(evt); OpenLayers.Event.preventDefault(evt);
} }
this.handleDouble(evt); this.handleDouble(evt);
} }