Skip to content

Commit

Permalink
fix: Chapter transition screen not behaving as intended when reader m…
Browse files Browse the repository at this point in the history
…ode is `click to move` and `zen mode` is enabled
  • Loading branch information
mienaiyami committed Feb 10, 2023
1 parent d9f8aaf commit dfbe57c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
## Added

- Option to disable chapter transition screen in `infinite scroll` mode (only when `zen mode` is off).
Sorry for repeated updates in single hour.

## Fixed

- Invalid settings error popping on every refresh/launch.
- Chapter transition screen not behaving as intended when reader mode is `click to move` and `zen mode` is enabled.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mangareader",
"productName": "Manga Reader",
"version": "2.5.1",
"version": "2.5.2",
"description": "App to read manga on desktop",
"main": ".webpack/main",
"author": {
Expand Down
6 changes: 3 additions & 3 deletions src/Components/Reader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ const Reader = () => {
window.dispatchEvent(pageChangeEvent);
}, [currentPageNumber]);
useEffect(() => {
scrollToPage(currentPageNumber, "auto");
if (zenMode) {
setSideListPinned(false);
document.body.classList.add("zenMode");
Expand Down Expand Up @@ -536,10 +537,9 @@ const Reader = () => {
className="chapterChangerScreen"
style={{
display:
zenMode ||
(appSettings.readerSettings.readerTypeSelected === 0 &&
!isSideListPinned &&
!appSettings.readerSettings.disableChapterTransitionScreen) ||
(zenMode ||
(!isSideListPinned && !appSettings.readerSettings.disableChapterTransitionScreen))) ||
(appSettings.readerSettings.readerTypeSelected !== 0 && chapterChangerDisplay)
? "grid"
: "none",
Expand Down

0 comments on commit dfbe57c

Please sign in to comment.