Stop click event, as previously promised

This should have gone in with 3910318f1b.
This commit is contained in:
ahocevar
2012-09-28 16:46:21 +02:00
parent 9d8155cf9f
commit 6b395cafb5
2 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -65,7 +65,7 @@ goog.inherits(ol.control.Zoom, ol.control.Control);
* @private
*/
ol.control.Zoom.prototype.handleIn_ = function(browserEvent) {
browserEvent.stopPropagation();
// prevent #zoomIn anchor from getting appended to the url
browserEvent.preventDefault();
this.getMap().zoom(this.delta_);
};
@@ -76,7 +76,7 @@ ol.control.Zoom.prototype.handleIn_ = function(browserEvent) {
* @private
*/
ol.control.Zoom.prototype.handleOut_ = function(browserEvent) {
browserEvent.stopPropagation();
// prevent #zoomOut anchor from getting appended to the url
browserEvent.preventDefault();
this.getMap().zoom(-this.delta_);
};