dragging mode of modify feature control is broken. r=crschmidt,tschaub. (closes #1418)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6564 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -33,7 +33,7 @@ OpenLayers.Handler.Feature = OpenLayers.Class(OpenLayers.Handler, {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Property: feature
|
* Property: feature
|
||||||
* {<OpenLayers.Feature.Vector>} The feature currently being handled.
|
* {<OpenLayers.Feature.Vector>} The last feature that was hovered.
|
||||||
*/
|
*/
|
||||||
feature: null,
|
feature: null,
|
||||||
|
|
||||||
@@ -246,6 +246,12 @@ OpenLayers.Handler.Feature = OpenLayers.Class(OpenLayers.Handler, {
|
|||||||
// out of last feature for the first time
|
// out of last feature for the first time
|
||||||
this.triggerCallback(type, 'out', [this.lastFeature]);
|
this.triggerCallback(type, 'out', [this.lastFeature]);
|
||||||
}
|
}
|
||||||
|
// next time the mouse goes in a feature whose geometry type
|
||||||
|
// doesn't match we don't want to call the 'out' callback
|
||||||
|
// again, so let's set this.feature to null so that
|
||||||
|
// previouslyIn will evaluate to false the next time
|
||||||
|
// we enter handle. Yes, a bit hackish...
|
||||||
|
this.feature = null;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(previouslyIn || (click && this.lastFeature)) {
|
if(previouslyIn || (click && this.lastFeature)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user