Restore drag handler state in deactivate. r=erilem (closes #3218)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11808 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -145,6 +145,7 @@ OpenLayers.Handler.Drag = OpenLayers.Class(OpenLayers.Handler, {
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Method: dragstart
|
||||
@@ -507,6 +508,7 @@ OpenLayers.Handler.Drag = OpenLayers.Class(OpenLayers.Handler, {
|
||||
deactivate: function() {
|
||||
var deactivated = false;
|
||||
if(OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) {
|
||||
this.touch = false;
|
||||
this.started = false;
|
||||
this.dragging = false;
|
||||
this.start = null;
|
||||
|
||||
Reference in New Issue
Block a user