Skip to content

Flipping forward on preview page sometimes causes infinite recursion error #1490

@cdrini

Description

@cdrini

Sentry: https://sentry.archive.org/organizations/ia-ux/issues/598484

To repro:

  1. Go to https://archive.org/details/dontsweatsmallst00carl_0/page/n7/mode/2up
  2. Hit the "right" key on your keyboard a few times

Expected: it should flip right past the the preview pages until it goes to the back cover
Actual: It throw an error and doesn't flip past the preview page "Uncaught InternalError: too much recursion"

Likely caused by the changes to jumpToIndex in #1480

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions