Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
fix: ignore close button when swipeToClose is active
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonGolms committed Feb 6, 2020
1 parent ebc756c commit 969d7e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<img [alt]="alt" [src]="src" (click)="viewImage(src, srcHighRes, title, text, scheme, slideOptions)" />
<img [alt]="alt" [src]="src" (click)="viewImage(src, srcHighRes, title, text, scheme, slideOptions, swipeToClose)" />
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ export class ViewerModalComponent implements OnInit {
startY: pageY,
startTime: new Date().getTime()
};
event.preventDefault();
}

swipeMove(event) {
Expand Down Expand Up @@ -191,6 +190,7 @@ export class ViewerModalComponent implements OnInit {
if (swipeType === 'down') {
return this.closeModal();
}
}

event.preventDefault();
}
Expand Down

0 comments on commit 969d7e8

Please sign in to comment.