32 lines
854 B
JavaScript
32 lines
854 B
JavaScript
/**
|
|
* @module ol/MapBrowserPointerEvent
|
|
*/
|
|
import {inherits} from './index.js';
|
|
import MapBrowserEvent from './MapBrowserEvent.js';
|
|
|
|
/**
|
|
* @constructor
|
|
* @extends {ol.MapBrowserEvent}
|
|
* @param {string} type Event type.
|
|
* @param {ol.PluggableMap} map Map.
|
|
* @param {ol.pointer.PointerEvent} pointerEvent Pointer event.
|
|
* @param {boolean=} opt_dragging Is the map currently being dragged?
|
|
* @param {?olx.FrameState=} opt_frameState Frame state.
|
|
*/
|
|
var MapBrowserPointerEvent = function(type, map, pointerEvent, opt_dragging,
|
|
opt_frameState) {
|
|
|
|
MapBrowserEvent.call(this, type, map, pointerEvent.originalEvent, opt_dragging,
|
|
opt_frameState);
|
|
|
|
/**
|
|
* @const
|
|
* @type {ol.pointer.PointerEvent}
|
|
*/
|
|
this.pointerEvent = pointerEvent;
|
|
|
|
};
|
|
|
|
inherits(MapBrowserPointerEvent, MapBrowserEvent);
|
|
export default MapBrowserPointerEvent;
|