internetarchive / internetarchive/bookreader

First page on it's own spread not working in RTL mode

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

Description

**Description**

This can be reproduced as follows: on the "bookreader simple demo" compare the demo as is, with what happens when you add the following line to the `options` object in `BookReaderJSSimple.js` :
`pageProgression: 'rl',`
(switching in each case to two-page mode)
Then, instead of the first page being on it's own spread, it's combined with the next page.

**Evidence / Screenshot (if possible)**
LTR mode:
![image](https://github.com/internetarchive/bookreader/assets/425828/be0dc7ed-be74-4795-88f2-8d4eda631c63)

RTL mode:
![image](https://github.com/internetarchive/bookreader/assets/425828/156e4304-78c5-47ad-86f1-798a7575074c)

**Expectation**

Since each value in the `data` array is supposed to represent a "spread", and this first item contains only the object for the first page in both cases, I would except the first page to be on it's own spread whatever the setting of `pageProgression`.

**Context**

Windows 10, Chrome 120.0.6099.130, BookReader 5.0.0-77

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.