mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #3005 from omnivore-app/fix/web-force-pdf-read-position
On web always set PDF position to the last viewed page
This commit is contained in:
commit
f3ac6613d6
2 changed files with 2 additions and 3 deletions
|
|
@ -408,11 +408,9 @@ export default function PdfArticleContainer(
|
|||
100,
|
||||
Math.max(0, ((pageIndex + 1) / instance.totalPageCount) * 100)
|
||||
)
|
||||
if (percent <= props.article.readingProgressPercent) {
|
||||
return
|
||||
}
|
||||
await articleReadingProgressMutation({
|
||||
id: props.article.id,
|
||||
force: true,
|
||||
readingProgressPercent: percent,
|
||||
readingProgressAnchorIndex: pageIndex,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { gqlFetcher } from '../networkHelpers'
|
|||
|
||||
export type ArticleReadingProgressMutationInput = {
|
||||
id: string
|
||||
force?: boolean
|
||||
readingProgressPercent?: number
|
||||
readingProgressTopPercent?: number
|
||||
readingProgressAnchorIndex?: number
|
||||
|
|
|
|||
Loading…
Reference in a new issue