stop clicks on the point handler - this means no more clicks sneaking through while editing - if you wanted that behavior, speak up - r=crschmidt (closes #1020)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5523 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -172,9 +172,26 @@ OpenLayers.Handler.Point = OpenLayers.Class(OpenLayers.Handler, {
|
||||
this.lastUp = null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Method: click
|
||||
* Handle clicks. Clicks are stopped from propagating to other listeners
|
||||
* on map.events or other dom elements.
|
||||
*
|
||||
* Parameters:
|
||||
* evt - {Event} The browser event
|
||||
*
|
||||
* Returns:
|
||||
* {Boolean} Allow event propagation
|
||||
*/
|
||||
click: function(evt) {
|
||||
OpenLayers.Event.stop(evt);
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* Method: dblclick
|
||||
* Handle double clicks.
|
||||
* Handle double-clicks. Double-clicks are stopped from propagating to other
|
||||
* listeners on map.events or other dom elements.
|
||||
*
|
||||
* Parameters:
|
||||
* evt - {Event} The browser event
|
||||
|
||||
Reference in New Issue
Block a user