# all files / ol/ mapbrowsereventtype.js

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    571×

    1×

    1×

     goog.provide('ol.MapBrowserEventType');

    goog.require('ol.events.EventType');

    /**
     * Constants for event names.
     * @enum {string}
     */
    ol.MapBrowserEventType = {

      /**
       * 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 ol.MapBrowserEvent#singleclick
       * @api
       */
      SINGLECLICK: 'singleclick',

      /**
       * A click with no dragging. A double click will fire two of this.
       * @event ol.MapBrowserEvent#click
       * @api
       */
      CLICK: ol.events.EventType.CLICK,

      /**
       * A true double click, with no dragging.
       * @event ol.MapBrowserEvent#dblclick
       * @api
       */
      DBLCLICK: ol.events.EventType.DBLCLICK,

      /**
       * Triggered when a pointer is dragged.
       * @event ol.MapBrowserEvent#pointerdrag
       * @api
       */
      POINTERDRAG: 'pointerdrag',

      /**
       * 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.
       * @event ol.MapBrowserEvent#pointermove
       * @api
       */
      POINTERMOVE: 'pointermove',

      POINTERDOWN: 'pointerdown',
      POINTERUP: 'pointerup',
      POINTEROVER: 'pointerover',
      POINTEROUT: 'pointerout',
      POINTERENTER: 'pointerenter',
      POINTERLEAVE: 'pointerleave',
      POINTERCANCEL: 'pointercancel'
    };