mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 04:22:28 +02: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) {
|
carouselPage(val, old) {
|
||||||
this.$debug('[watch:carouselPage', `old:${old}`, `new:${val}`)
|
this.$debug('[watch:carouselPage', `old:${old}`, `new:${val}`)
|
||||||
if (this.carouselPage >= 0 && this.carouselPage < this.spreads.length && this.spreads.length > 0) {
|
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 {
|
} else {
|
||||||
this.$emit('update:page', 1)
|
this.$emit('update:page', 1)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue