Skip to content

Commit

Permalink
Fix: Zoom bug in vertical reading if global zoom disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ollm committed Dec 22, 2023
1 parent 1185d82 commit f83d17f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Option to set maximum size of temporary files, preserving them when closing the app [`a727249`](https://github.com/ollm/OpenComic/commit/a7272499407191064f9d6bd7c42ecf3bb1231a83)
- Label to display only the contents of a master folder [`ff35144`](https://github.com/ollm/OpenComic/commit/ff351447829641de32e59a7332f354d945df88fa)
- Support favorite label [`86039e6`](https://github.com/ollm/OpenComic/commit/86039e6d9f90d77b9671068d520c8bc2fa635f30)
- Custom labels support
- Custom labels support [`1185d82`](https://github.com/ollm/OpenComic/commit/1185d82790a764e63d1d223362e4b44e203ff0e1)

##### 🐛 Bug Fixes

- Error on detect file type from binary [`0f81947`](https://github.com/ollm/OpenComic/commit/0f819470d42ce996cd4f1f0a31665a605d2bc39a)
- Zoom bug in vertical reading if global zoom disabled

## [v1.0.0](https://github.com/ollm/OpenComic/releases/tag/v1.0.0) (09-12-2023)

Expand Down
4 changes: 2 additions & 2 deletions scripts/reading.js
Original file line number Diff line number Diff line change
Expand Up @@ -1830,7 +1830,7 @@ function applyScale(animation = true, scale = 1, center = false, zoomOut = false
transition: 'transform 0s, z-index 0s',
transform: 'translateX('+app.roundDPR(translateX)+'px) translateY('+app.roundDPR(translateY)+'px) scale('+scale+')',
transformOrigin: 'center center',
zIndex: scale == 1 ? 1 : 2,
zIndex: scale == 1 ? 1 : 3,
});

}, _config.readingViewSpeed * 1000);
Expand All @@ -1841,7 +1841,7 @@ function applyScale(animation = true, scale = 1, center = false, zoomOut = false
transition: 'transform '+animationDurationS+'s, z-index '+animationDurationS+'s',
transform: 'translateX('+app.roundDPR(translateX)+'px) translateY('+app.roundDPR(translateY)+'px) scale('+scale+')',
transformOrigin: 'center center',
zIndex: scale == 1 ? 1 : 2,
zIndex: scale == 1 ? 1 : 3,
});
}

Expand Down

0 comments on commit f83d17f

Please sign in to comment.