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