Don't remove the drag control's reference to the feature on up. This is intended to solve issues with fast dragging. Thanks for the patch bjornharrtell. r=me (closes #1196)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9090 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2009-03-18 21:56:53 +00:00
parent c6a7dd235d
commit 66b4cd65f6

View File

@@ -220,8 +220,7 @@ OpenLayers.Control.DragFeature = OpenLayers.Class(OpenLayers.Control, {
/**
* Method: upFeature
* Called when the drag handler detects a mouse-up. Also calls the
* optional onComplete method.
* Called when the drag handler detects a mouse-up.
*
* Parameters:
* pixel - {<OpenLayers.Pixel>} Location of the mouse event.
@@ -229,7 +228,6 @@ OpenLayers.Control.DragFeature = OpenLayers.Class(OpenLayers.Control, {
upFeature: function(pixel) {
if(!this.over) {
this.handlers.drag.deactivate();
this.feature = null;
// TBD replace with CSS classes
this.map.div.style.cursor = "default";
} else {