mirror of
https://github.com/gotson/komga.git
synced 2025-12-19 23:12:47 +01:00
fix(webreader): mark read could miss the last page in double pages
closes #772
This commit is contained in:
parent
9eeb3cfddf
commit
ecbba653bf
1 changed files with 3 additions and 1 deletions
|
|
@ -131,7 +131,9 @@ export default Vue.extend({
|
|||
carouselPage(val, old) {
|
||||
this.$debug('[watch:carouselPage', `old:${old}`, `new:${val}`)
|
||||
if (this.carouselPage >= 0 && this.carouselPage < this.spreads.length && this.spreads.length > 0) {
|
||||
this.$emit('update:page', this.spreads[this.carouselPage][0].number)
|
||||
const currentSpread = this.spreads[this.carouselPage]
|
||||
const currentPage = currentSpread.length == 2 && currentSpread[1].mediaType ? currentSpread[1] : currentSpread[0]
|
||||
this.$emit('update:page', currentPage.number)
|
||||
} else {
|
||||
this.$emit('update:page', 1)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue