cancelDelay before measureImmediate + changes in tests.

This commit is contained in:
Xavier Mamano
2011-11-16 19:51:28 +01:00
parent a04df3e359
commit eae04c92bc
2 changed files with 4 additions and 4 deletions

View File

@@ -230,8 +230,8 @@ OpenLayers.Control.Measure = OpenLayers.Class(OpenLayers.Control, {
* mouseposition. feature - {<OpenLayers.Feature.Vector>} The sketch feature.
*/
measureImmediate : function(point, feature, drawing) {
if (drawing && this.delayedTrigger === null &&
!this.handler.freehandMode(this.handler.evt)) {
if (drawing && !this.handler.freehandMode(this.handler.evt)) {
this.cancelDelay();
this.measure(feature.geometry, "measurepartial");
}
},