cancelDelay before measureImmediate + changes in tests.

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

No files matched your search

+2 -2
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");
}
},