diff --git a/src/core/classes/hammer-gesture-config.ts b/src/core/classes/hammer-gesture-config.ts deleted file mode 100644 index de832aa37..000000000 --- a/src/core/classes/hammer-gesture-config.ts +++ /dev/null @@ -1,27 +0,0 @@ -// (C) Copyright 2015 Moodle Pty Ltd. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -import { HammerGestureConfig } from '@angular/platform-browser'; -import { DIRECTION_ALL } from 'hammerjs'; - -/** - * Application HammerJS config. - */ -export class CoreHammerGestureConfig extends HammerGestureConfig { - - overrides = { - swipe: { direction: DIRECTION_ALL }, - }; - -} diff --git a/src/core/core.module.ts b/src/core/core.module.ts index 44ca6128e..7caca92ca 100644 --- a/src/core/core.module.ts +++ b/src/core/core.module.ts @@ -14,11 +14,9 @@ import { HTTP_INTERCEPTORS } from '@angular/common/http'; import { ApplicationInitStatus, Injector, NgModule, Type } from '@angular/core'; -import { HammerModule, HAMMER_GESTURE_CONFIG } from '@angular/platform-browser'; import { CoreApplicationInitStatus } from './classes/application-init-status'; import { CoreFeaturesModule } from './features/features.module'; -import { CoreHammerGestureConfig } from './classes/hammer-gesture-config'; import { CoreInterceptor } from './classes/interceptor'; import { getDatabaseProviders } from './services/database'; import { getInitializerProviders } from './initializers'; @@ -84,11 +82,9 @@ export const CORE_SERVICES: Type[] = [ @NgModule({ imports: [ CoreFeaturesModule, - HammerModule, ], providers: [ { provide: HTTP_INTERCEPTORS, useClass: CoreInterceptor, multi: true }, - { provide: HAMMER_GESTURE_CONFIG, useClass: CoreHammerGestureConfig }, { provide: ApplicationInitStatus, useClass: CoreApplicationInitStatus, deps: [Injector] }, ...getDatabaseProviders(), ...getInitializerProviders(),