mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Set reading progress top percent
This commit is contained in:
parent
036040a3a0
commit
cc4b07a5ed
1 changed files with 1 additions and 2 deletions
|
|
@ -50,9 +50,8 @@ export function Article(props: ArticleProps): JSX.Element {
|
|||
|
||||
await props.articleMutations.articleReadingProgressMutation({
|
||||
id: props.articleId,
|
||||
// // round reading progress to 100% if more than that
|
||||
readingProgressPercent: clampToPercent(readingProgress),
|
||||
readingProgressTopPercent: clampToPercent(topPositionPercent),
|
||||
readingProgressTopPercent: clampToPercent(topPositionPercent * 100),
|
||||
readingProgressAnchorIndex:
|
||||
anchorIndex == Number.NaN ? undefined : anchorIndex,
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue