Merge pull request #294 from fredj/stopped-map-events
can't listen to mousedown/touchstart on map div
This commit is contained in:
@@ -172,7 +172,8 @@ OpenLayers.Handler.Drag = OpenLayers.Class(OpenLayers.Handler, {
|
||||
this.down(evt);
|
||||
this.callback("down", [evt.xy]);
|
||||
|
||||
OpenLayers.Event.stop(evt);
|
||||
// prevent document dragging
|
||||
OpenLayers.Event.preventDefault(evt);
|
||||
|
||||
if(!this.oldOnselectstart) {
|
||||
this.oldOnselectstart = document.onselectstart ?
|
||||
|
||||
@@ -103,7 +103,7 @@ OpenLayers.Handler.Pinch = OpenLayers.Class(OpenLayers.Handler, {
|
||||
this.last = null;
|
||||
}
|
||||
// prevent document dragging
|
||||
OpenLayers.Event.stop(evt);
|
||||
OpenLayers.Event.preventDefault(evt);
|
||||
return propagate;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user