Skip to content

onPageUpdate methods run twice on book open #2836

@robert00s

Description

@robert00s
  • KOReader version:all
  • Device:all

Issue

onPageUpdate() methods runs twice on book open. It should run only one.

Steps to reproduce

Open new document in format epub or doc. For new and previously opened books.
I think that that line https://github.com/koreader/koreader/blame/master/frontend/apps/reader/modules/readerrolling.lua#L450 may be redundant for new books.
That line https://github.com/koreader/koreader/blame/master/frontend/apps/reader/modules/readerrolling.lua#L467 may be redundant for previously opened books.

I think that self:_gotoXPointer(self.xpointer) shouldn't be run when opening documents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions