When saving PDF read position always set it to the current page

This commit is contained in:
Jackson Harper
2023-10-24 17:15:03 +08:00
parent c2092e0e5d
commit 973c1dec1e
2 changed files with 2 additions and 0 deletions

View File

@ -413,6 +413,7 @@ export default function PdfArticleContainer(
}
await articleReadingProgressMutation({
id: props.article.id,
force: true,
readingProgressPercent: percent,
readingProgressAnchorIndex: pageIndex,
})

View File

@ -3,6 +3,7 @@ import { gqlFetcher } from '../networkHelpers'
export type ArticleReadingProgressMutationInput = {
id: string
force?: boolean
readingProgressPercent?: number
readingProgressTopPercent?: number
readingProgressAnchorIndex?: number