_onBasicInput(event) {
    // For calculating pointer position relative to the canvas
    event.rootElement = this.element;

    const {srcEvent} = event;
    const eventAliases = BASIC_EVENT_ALIASES[srcEvent.type];
    if (eventAliases) {
      // fire all events aliased to srcEvent.type
      eventAliases.forEach(alias => {
        const emitEvent = Object.assign({}, event, {type: alias});
        this.manager.emit(alias, emitEvent);
      });
    }
  }
/**
   * Handle basic events using the 'hammer.input' Hammer.js API:
   * Before running Recognizers, Hammer emits a 'hammer.input' event
   * with the basic event info. This function emits all basic events
   * aliased to the "class" of event received.
   * See constants.BASIC_EVENT_CLASSES basic event class definitions.
   */
Handle basic events using the 'hammer.input' Hammer.js API:
Before running Recognizers, Hammer emits a 'hammer.input' event
with the basic event info. This function emits all basic events
aliased to the "class" of event received.
See constants.BASIC_EVENT_CLASSES basic event class definitions.
Handle basic events using the ' hammer . input ' Hammer . js API : Before running Recognizers Hammer emits a ' hammer . input ' event with the basic event info . This function emits all basic events aliased to the " class " of event received . See constants . BASIC_EVENT_CLASSES basic event class definitions .
_onBasicInput(event) {
    event.rootElement = this.element;
    const {srcEvent} = event;
    const eventAliases = BASIC_EVENT_ALIASES[srcEvent.type];
    if (eventAliases) {
      eventAliases.forEach(alias => {
        const emitEvent = Object.assign({}, event, {type: alias});
        this.manager.emit(alias, emitEvent);
      });
    }
  }
_onBasicInput ( event ) { event . rootElement = this . element ; const { srcEvent } = event ; const eventAliases = BASIC_EVENT_ALIASES [ srcEvent . type ] ; if ( eventAliases ) { eventAliases . forEach ( alias => { const emitEvent = Object . assign ( { } , event , { type : alias } ) ; this . manager . emit ( alias , emitEvent ) ; } ) ; } }
Handle basic events using the 'hammer.input' Hammer.js API:
 Before running Recognizers, Hammer emits a 'hammer.input' event
 with the basic event info.
Handle basic events using the ' hammer . input ' Hammer . js API : Before running Recognizers Hammer emits a ' hammer . input ' event with the basic event info .
// For calculating pointer position relative to the canvas // fire all events aliased to srcEvent.type