Bugfix/manga reader (#582)

* Fixed an issue where you could change paging direction then switch to Up/Down mode and paging direction would still be present

* Removed some code for a feature I'm not implementing anymore
This commit is contained in:
Joseph Milazzo 2021-09-16 07:17:36 -07:00 committed by GitHub
parent 364c57925e
commit b452409a4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

View File

@ -34,12 +34,6 @@
<div class="{{readerMode === READER_MODE.MANGA_LR ? 'right' : 'top'}} {{clickOverlayClass('right')}}" (click)="handlePageChange($event, 'right')"></div>
<div class="{{readerMode === READER_MODE.MANGA_LR ? 'left' : 'bottom'}} {{clickOverlayClass('left')}}" (click)="handlePageChange($event, 'left')"></div>
</ng-container>
<ng-template #webtoonClickArea>
<div class="top {{clickOverlayClass('right')}}" (click)="handlePageChange($event, 'right')"></div>
<div class="right {{clickOverlayClass('right')}}" (click)="handlePageChange($event, 'right')"></div>
<div class="left {{clickOverlayClass('left')}}" (click)="handlePageChange($event, 'left')"></div>
<div class="bottom {{clickOverlayClass('left')}}" (click)="handlePageChange($event, 'left')"></div>
</ng-template>
</div>
<div class="fixed-bottom overlay" *ngIf="menuOpen" [@slideFromBottom]="menuOpen">

View File

@ -953,11 +953,10 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {
switch(this.readerMode) {
case READER_MODE.MANGA_LR:
this.readerMode = READER_MODE.MANGA_UD;
this.pagingDirection = PAGING_DIRECTION.FORWARD;
break;
case READER_MODE.MANGA_UD:
this.readerMode = READER_MODE.WEBTOON;
// Temp disable ability to use webtoon
//this.readerMode = READER_MODE.MANGA_LR;
break;
case READER_MODE.WEBTOON:
this.readerMode = READER_MODE.MANGA_LR;