fix(tap-click): do not dispatch click events if tap-click blocks them

- do not dispatch clicks if gesture controller captured a gesture
This commit is contained in:
Manu Mtz.-Almeida
2016-11-28 17:42:12 +01:00
parent 907191bbc2
commit 8f8185b2ce
2 changed files with 61 additions and 33 deletions

View File

@ -155,7 +155,7 @@ export class IonicModule {
{ provide: APP_INITIALIZER, useFactory: registerModeConfigs, deps: [ Config ], multi: true },
{ provide: APP_INITIALIZER, useFactory: registerTransitions, deps: [ Config ], multi: true },
{ provide: APP_INITIALIZER, useFactory: setupProvideEvents, deps: [ Platform ], multi: true },
{ provide: APP_INITIALIZER, useFactory: setupTapClick, deps: [ Config, App, NgZone ], multi: true },
{ provide: APP_INITIALIZER, useFactory: setupTapClick, deps: [ Config, App, NgZone, GestureController ], multi: true },
// useClass
{ provide: HAMMER_GESTURE_CONFIG, useClass: IonicGestureConfig },