MOBILE-3947 chore: Remove unneeded HammerJS config override
parent
0a73c59ea0
commit
ec87e0c877
|
@ -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 },
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
|
@ -14,11 +14,9 @@
|
||||||
|
|
||||||
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
||||||
import { ApplicationInitStatus, Injector, NgModule, Type } from '@angular/core';
|
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 { CoreApplicationInitStatus } from './classes/application-init-status';
|
||||||
import { CoreFeaturesModule } from './features/features.module';
|
import { CoreFeaturesModule } from './features/features.module';
|
||||||
import { CoreHammerGestureConfig } from './classes/hammer-gesture-config';
|
|
||||||
import { CoreInterceptor } from './classes/interceptor';
|
import { CoreInterceptor } from './classes/interceptor';
|
||||||
import { getDatabaseProviders } from './services/database';
|
import { getDatabaseProviders } from './services/database';
|
||||||
import { getInitializerProviders } from './initializers';
|
import { getInitializerProviders } from './initializers';
|
||||||
|
@ -84,11 +82,9 @@ export const CORE_SERVICES: Type<unknown>[] = [
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CoreFeaturesModule,
|
CoreFeaturesModule,
|
||||||
HammerModule,
|
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: HTTP_INTERCEPTORS, useClass: CoreInterceptor, multi: true },
|
{ provide: HTTP_INTERCEPTORS, useClass: CoreInterceptor, multi: true },
|
||||||
{ provide: HAMMER_GESTURE_CONFIG, useClass: CoreHammerGestureConfig },
|
|
||||||
{ provide: ApplicationInitStatus, useClass: CoreApplicationInitStatus, deps: [Injector] },
|
{ provide: ApplicationInitStatus, useClass: CoreApplicationInitStatus, deps: [Injector] },
|
||||||
...getDatabaseProviders(),
|
...getDatabaseProviders(),
|
||||||
...getInitializerProviders(),
|
...getInitializerProviders(),
|
||||||
|
|
Loading…
Reference in New Issue