mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
Fixing missing hammerjs module (fixes mobile touch support) #144
It is needed since angular 9. Tested on Pixel4, Ipad Air
This commit is contained in:
parent
567f81b2aa
commit
8ec734dfb7
@ -1,5 +1,5 @@
|
||||
import {Injectable, NgModule} from '@angular/core';
|
||||
import {BrowserModule, HAMMER_GESTURE_CONFIG, HammerGestureConfig} from '@angular/platform-browser';
|
||||
import {BrowserModule, HAMMER_GESTURE_CONFIG, HammerGestureConfig, HammerModule} from '@angular/platform-browser';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
import {AppComponent} from './app.component';
|
||||
import {UserService} from './model/network/user.service';
|
||||
@ -129,6 +129,7 @@ export class CustomUrlSerializer implements UrlSerializer {
|
||||
@NgModule({
|
||||
imports: [
|
||||
BrowserModule,
|
||||
HammerModule,
|
||||
FormsModule,
|
||||
HttpClientModule,
|
||||
BrowserAnimationsModule,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {Component, ElementRef, EventEmitter, HostListener, Input, OnChanges, OnDestroy, OnInit, Output, ViewChild} from '@angular/core';
|
||||
import {MediaDTO, MediaDTOUtils} from '../../../../../../common/entities/MediaDTO';
|
||||
import {MediaDTOUtils} from '../../../../../../common/entities/MediaDTO';
|
||||
import {FullScreenService} from '../../fullscreen.service';
|
||||
import {GalleryPhotoComponent} from '../../grid/photo/photo.grid.gallery.component';
|
||||
import {Observable, Subscription, timer} from 'rxjs';
|
||||
@ -370,7 +370,7 @@ export class ControlsLightboxComponent implements OnDestroy, OnInit, OnChanges {
|
||||
|
||||
private hideControls = () => {
|
||||
this.controllersDimmed = true;
|
||||
}
|
||||
};
|
||||
|
||||
private updateFaceContainerDim(): void {
|
||||
if (!this.activePhoto) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user