import { Injectable } from '@angular/core' ; import { HammerGestureConfig } from '@angular/platform-browser' ; hidden @ Injectable ( ) export class IonicGestureConfig extends HammerGestureConfig { buildHammer ( element ) { const mc = new ( < any > window ) . Hammer ( element ) ; for ( let eventName in this . overrides ) { mc . get ( eventName ) . set ( this . overrides [ eventName ] ) ; } return mc ; } }