Skip to content

Commit

Permalink
Fix open page per click in RTL mode
Browse files Browse the repository at this point in the history
The action to perform which gets determined on a tap zone click is always in the correct direction, thus, the direction for the "openPage" call has to be forced to be "LTR" to prevent inverting the direction
  • Loading branch information
schroda committed Dec 9, 2024
1 parent 8491091 commit 0e3b629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/reader/services/ReaderControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ export class ReaderControls {
openChapter,
);
} else {
openPage('previous');
openPage('previous', 'ltr');
}
break;
case TapZoneRegionType.NEXT:
Expand All @@ -422,7 +422,7 @@ export class ReaderControls {
openChapter,
);
} else {
openPage('next');
openPage('next', 'ltr');
}
break;
default:
Expand Down

0 comments on commit 0e3b629

Please sign in to comment.