internetarchive / internetarchive/bookreader

Flipping forward on preview page sometimes causes infinite recursion error

Open
#1,490 0 comments 0 reactions 0 assignees View on GitHub
difficulty: medium priority: medium
Dominant language
JavaScript
Stars
1.2k
Forks
491
Avg merge
2d 15h
Merged PRs (30d)
3

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.