From 66b4cd65f6314be94e53f3b8abd897017fa9c07f Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Wed, 18 Mar 2009 21:56:53 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Control/DragFeature.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/OpenLayers/Control/DragFeature.js b/lib/OpenLayers/Control/DragFeature.js index 220f6ebe64..4c6ac9a767 100644 --- a/lib/OpenLayers/Control/DragFeature.js +++ b/lib/OpenLayers/Control/DragFeature.js @@ -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 - {} 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 {