Restore preventDefault call that shouldn’t have been removed
This commit is contained in:
@@ -83,6 +83,7 @@ ol.control.FullScreen.prototype.handleClick_ = function(browserEvent) {
|
|||||||
if (!goog.dom.fullscreen.isSupported()) {
|
if (!goog.dom.fullscreen.isSupported()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
browserEvent.preventDefault();
|
||||||
var map = this.getMap();
|
var map = this.getMap();
|
||||||
if (goog.isNull(map)) {
|
if (goog.isNull(map)) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -94,6 +94,7 @@ goog.inherits(ol.control.Zoom, ol.control.Control);
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.control.Zoom.prototype.zoomByDelta_ = function(delta, browserEvent) {
|
ol.control.Zoom.prototype.zoomByDelta_ = function(delta, browserEvent) {
|
||||||
|
browserEvent.preventDefault();
|
||||||
// prevent the anchor from getting appended to the url
|
// prevent the anchor from getting appended to the url
|
||||||
var map = this.getMap();
|
var map = this.getMap();
|
||||||
// FIXME works for View2D only
|
// FIXME works for View2D only
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ goog.inherits(ol.control.ZoomToExtent, ol.control.Control);
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.control.ZoomToExtent.prototype.handleZoomToExtent_ = function(browserEvent) {
|
ol.control.ZoomToExtent.prototype.handleZoomToExtent_ = function(browserEvent) {
|
||||||
|
browserEvent.preventDefault();
|
||||||
// prevent #zoomExtent anchor from getting appended to the url
|
// prevent #zoomExtent anchor from getting appended to the url
|
||||||
var map = this.getMap();
|
var map = this.getMap();
|
||||||
var view = map.getView();
|
var view = map.getView();
|
||||||
|
|||||||
Reference in New Issue
Block a user