Transformed
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
goog.provide('ol.MapBrowserEvent');
|
||||
|
||||
goog.require('ol');
|
||||
goog.require('ol.MapEvent');
|
||||
|
||||
/**
|
||||
* @module ol/MapBrowserEvent
|
||||
*/
|
||||
import _ol_ from './index.js';
|
||||
import _ol_MapEvent_ from './MapEvent.js';
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
@@ -18,10 +18,10 @@ goog.require('ol.MapEvent');
|
||||
* @param {boolean=} opt_dragging Is the map currently being dragged?
|
||||
* @param {?olx.FrameState=} opt_frameState Frame state.
|
||||
*/
|
||||
ol.MapBrowserEvent = function(type, map, browserEvent, opt_dragging,
|
||||
var _ol_MapBrowserEvent_ = function(type, map, browserEvent, opt_dragging,
|
||||
opt_frameState) {
|
||||
|
||||
ol.MapEvent.call(this, type, map, opt_frameState);
|
||||
_ol_MapEvent_.call(this, type, map, opt_frameState);
|
||||
|
||||
/**
|
||||
* The original browser event.
|
||||
@@ -55,7 +55,8 @@ ol.MapBrowserEvent = function(type, map, browserEvent, opt_dragging,
|
||||
this.dragging = opt_dragging !== undefined ? opt_dragging : false;
|
||||
|
||||
};
|
||||
ol.inherits(ol.MapBrowserEvent, ol.MapEvent);
|
||||
|
||||
_ol_.inherits(_ol_MapBrowserEvent_, _ol_MapEvent_);
|
||||
|
||||
|
||||
/**
|
||||
@@ -64,8 +65,8 @@ ol.inherits(ol.MapBrowserEvent, ol.MapEvent);
|
||||
* @override
|
||||
* @api
|
||||
*/
|
||||
ol.MapBrowserEvent.prototype.preventDefault = function() {
|
||||
ol.MapEvent.prototype.preventDefault.call(this);
|
||||
_ol_MapBrowserEvent_.prototype.preventDefault = function() {
|
||||
_ol_MapEvent_.prototype.preventDefault.call(this);
|
||||
this.originalEvent.preventDefault();
|
||||
};
|
||||
|
||||
@@ -76,7 +77,8 @@ ol.MapBrowserEvent.prototype.preventDefault = function() {
|
||||
* @override
|
||||
* @api
|
||||
*/
|
||||
ol.MapBrowserEvent.prototype.stopPropagation = function() {
|
||||
ol.MapEvent.prototype.stopPropagation.call(this);
|
||||
_ol_MapBrowserEvent_.prototype.stopPropagation = function() {
|
||||
_ol_MapEvent_.prototype.stopPropagation.call(this);
|
||||
this.originalEvent.stopPropagation();
|
||||
};
|
||||
export default _ol_MapBrowserEvent_;
|
||||
|
||||
Reference in New Issue
Block a user