Skip to content

Commit

Permalink
Merge pull request #213 from Suwayomi/main
Browse files Browse the repository at this point in the history
fix magic scroll on next chapter
  • Loading branch information
Robonau committed Jul 30, 2024
2 parents 2013032 + d114811 commit 0b64ecf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,10 @@
$: lowestIntersect = document.querySelector(
visiblePages.reduce(
(a, c) => {
if (c.chapterIndex >= a.chapterIndex && c.pageIndex > a.pageIndex) {
if (
c.chapterIndex > a.chapterIndex ||
(c.chapterIndex === a.chapterIndex && c.pageIndex > a.pageIndex)
) {
return c;
}
return a;
Expand Down
2 changes: 1 addition & 1 deletion versionToServerVersionMapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
{
"tag": "v1.1.0",
"uiVersion": "r1088",
"uiVersion": "r1092",
"serverVersion": "r1502",
"comment": "the server version is between 1.0.0 and 1.1.0 release",
"comment2": "because its the preview version that implemented the breaking changes"
Expand Down

0 comments on commit 0b64ecf

Please sign in to comment.