pointer-event.esm.js
function PointerEvent(options) {
    var _this = this;

    _classCallCheck(this, PointerEvent);

    this.startHandlers = {};
    this.lastHandlerId = 0;
    this.curPointerClass = null;
    this.curTouchId = null;
    this.lastPointerXY = { clientX: 0, clientY: 0 };
    this.lastTouchTime = 0;

    // Options
    this.options = { // Default
      preventDefault: true,
      stopPropagation: true
    };
    if (options) {
      ['preventDefault', 'stopPropagation'].forEach(function (option) {
        if (typeof options[option] === 'boolean') {
          _this.options[option] = options[option];
        }
      });
    }
  }
function PointerEvent(options) {
    var _this = this;

    _classCallCheck(this, PointerEvent);

    this.startHandlers = {};
    this.lastHandlerId = 0;
    this.curPointerClass = null;
    this.curTouchId = null;
    this.lastPointerXY = { clientX: 0, clientY: 0 };
    this.lastTouchTime = 0;

    // Options
    this.options = { // Default
      preventDefault: true,
      stopPropagation: true
    };
    if (options) {
      ['preventDefault', 'stopPropagation'].forEach(function (option) {
        if (typeof options[option] === 'boolean') {
          _this.options[option] = options[option];
        }
      });
    }
  }
function PointerEvent ( options ) { var _this = this ; _classCallCheck ( this , PointerEvent ) ; this . startHandlers = { } ; this . lastHandlerId = 0 ; this . curPointerClass = null ; this . curTouchId = null ; this . lastPointerXY = { clientX : 0 , clientY : 0 } ; this . lastTouchTime = 0 ; // Options this . options = { // Default preventDefault : true , stopPropagation : true } ; if ( options ) { [ 'preventDefault' , 'stopPropagation' ] . forEach ( function ( option ) { if ( typeof options [ option ] === 'boolean' ) { _this . options [ option ] = options [ option ] ; } } ) ; } }
Create a `PointerEvent` instance.
@param {Object} [options] - Options
Create a PointerEvent instance .