Stable map browser events

This commit is contained in:
Tim Schaub
2015-04-02 11:57:43 +02:00
parent 5293cdc780
commit 56a942e9cf

View File

@@ -486,26 +486,29 @@ ol.MapBrowserEventHandler.prototype.disposeInternal = function() {
* @enum {string} * @enum {string}
*/ */
ol.MapBrowserEvent.EventType = { ol.MapBrowserEvent.EventType = {
// derived event types
/** /**
* A true single click with no dragging and no double click. Note that this * A true single click with no dragging and no double click. Note that this
* event is delayed by 250 ms to ensure that it is not a double click. * event is delayed by 250 ms to ensure that it is not a double click.
* @event ol.MapBrowserEvent#singleclick * @event ol.MapBrowserEvent#singleclick
* @api * @api stable
*/ */
SINGLECLICK: 'singleclick', SINGLECLICK: 'singleclick',
/** /**
* A click with no dragging. A double click will fire two of this. * A click with no dragging. A double click will fire two of this.
* @event ol.MapBrowserEvent#click * @event ol.MapBrowserEvent#click
* @api * @api stable
*/ */
CLICK: goog.events.EventType.CLICK, CLICK: goog.events.EventType.CLICK,
/** /**
* A true double click, with no dragging. * A true double click, with no dragging.
* @event ol.MapBrowserEvent#dblclick * @event ol.MapBrowserEvent#dblclick
* @api * @api stable
*/ */
DBLCLICK: goog.events.EventType.DBLCLICK, DBLCLICK: goog.events.EventType.DBLCLICK,
/** /**
* Triggered when a pointer is dragged. * Triggered when a pointer is dragged.
* @event ol.MapBrowserEvent#pointerdrag * @event ol.MapBrowserEvent#pointerdrag
@@ -513,14 +516,14 @@ ol.MapBrowserEvent.EventType = {
*/ */
POINTERDRAG: 'pointerdrag', POINTERDRAG: 'pointerdrag',
// original pointer event types
/** /**
* Triggered when a pointer is moved. Note that on touch devices this is * Triggered when a pointer is moved. Note that on touch devices this is
* triggered when the map is panned, so is not the same as mousemove. * triggered when the map is panned, so is not the same as mousemove.
* @event ol.MapBrowserEvent#pointermove * @event ol.MapBrowserEvent#pointermove
* @api * @api stable
*/ */
POINTERMOVE: 'pointermove', POINTERMOVE: 'pointermove',
POINTERDOWN: 'pointerdown', POINTERDOWN: 'pointerdown',
POINTERUP: 'pointerup', POINTERUP: 'pointerup',
POINTEROVER: 'pointerover', POINTEROVER: 'pointerover',