Make feature handler propagate touch events
This commit is a follow-up on issue #294 (commita6119f6) and #861 (commitc7a4045). The feature handler should not stop the bubbling up of browser events. In this particular case, when the feature handler is activate, Sencha Touch will trigger longpress events when panning the map because the feature handler stops touchmove.
This commit is contained in:
committed by
Bart van den Eijnden
parent
8b4592e71a
commit
e9a349e4f1
@@ -147,7 +147,7 @@ OpenLayers.Handler.Feature = OpenLayers.Class(OpenLayers.Handler, {
|
||||
* evt - {Event}
|
||||
*/
|
||||
touchmove: function(evt) {
|
||||
OpenLayers.Event.stop(evt);
|
||||
OpenLayers.Event.preventDefault(evt);
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -278,7 +278,7 @@ OpenLayers.Handler.Feature = OpenLayers.Class(OpenLayers.Handler, {
|
||||
if(type === "touchstart") {
|
||||
// stop the event to prevent Android Webkit from
|
||||
// "flashing" the map div
|
||||
OpenLayers.Event.stop(evt);
|
||||
OpenLayers.Event.preventDefault(evt);
|
||||
}
|
||||
var inNew = (this.feature != this.lastFeature);
|
||||
if(this.geometryTypeMatches(this.feature)) {
|
||||
|
||||
Reference in New Issue
Block a user