@igo2/core
Version:
49 lines (44 loc) • 2.13 kB
JavaScript
import * as i0 from '@angular/core';
import { Injectable, NgModule } from '@angular/core';
import { HammerGestureConfig, HAMMER_GESTURE_CONFIG, HammerModule } from '@angular/platform-browser';
class IgoGestureConfig extends HammerGestureConfig {
buildHammer(element) {
const mc = super.buildHammer(element);
mc.set({ touchAction: 'pan-y' });
return mc;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: IgoGestureConfig, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: IgoGestureConfig });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: IgoGestureConfig, decorators: [{
type: Injectable
}] });
class IgoGestureModule {
static forRoot() {
return {
ngModule: IgoGestureModule,
providers: [
{
provide: HAMMER_GESTURE_CONFIG,
useClass: IgoGestureConfig
}
]
};
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: IgoGestureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: IgoGestureModule, imports: [HammerModule] });
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: IgoGestureModule, imports: [HammerModule] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: IgoGestureModule, decorators: [{
type: NgModule,
args: [{
imports: [HammerModule],
declarations: [],
exports: []
}]
}] });
/**
* Generated bundle index. Do not edit.
*/
export { IgoGestureConfig, IgoGestureModule };
//# sourceMappingURL=igo2-core-gesture.mjs.map