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