Restore preventDefault call that shouldn’t have been removed

This commit is contained in:
Antoine Abt
2014-02-19 11:57:30 +01:00
parent 2a48197234
commit 30bc97755a
3 changed files with 3 additions and 0 deletions

View File

@@ -94,6 +94,7 @@ goog.inherits(ol.control.Zoom, ol.control.Control);
* @private
*/
ol.control.Zoom.prototype.zoomByDelta_ = function(delta, browserEvent) {
browserEvent.preventDefault();
// prevent the anchor from getting appended to the url
var map = this.getMap();
// FIXME works for View2D only