[OpenLayers-Commits] r11770 -
trunk/openlayers/lib/OpenLayers/Handler
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Wed Mar 30 04:16:50 EDT 2011
Author: erilem
Date: 2011-03-30 01:16:47 -0700 (Wed, 30 Mar 2011)
New Revision: 11770
Modified:
trunk/openlayers/lib/OpenLayers/Handler/RegularPolygon.js
Log:
when drawing a regular polygon cancel drawing instead of finalizing when the mouse leaves the map, p=jorix, r=me,sbrunner (closes #3199)
Modified: trunk/openlayers/lib/OpenLayers/Handler/RegularPolygon.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Handler/RegularPolygon.js 2011-03-30 07:09:31 UTC (rev 11769)
+++ trunk/openlayers/lib/OpenLayers/Handler/RegularPolygon.js 2011-03-30 08:16:47 UTC (rev 11770)
@@ -303,7 +303,7 @@
* evt - {Event} The mouse out event
*/
out: function(evt) {
- this.finalize();
+ this.cancel();
},
/**
More information about the Commits
mailing list