Add a Double Page Viewer (#105)

* add double page reader

* implement singleRTL

* add on image load handler

* add retry display time interval

* remove comments

* add double page wrapper

* fix image getting out of bounds

* remove comments

* remove unused styles

* return imageStyle as type CSSProperties

* rename DoublePagedReader to DoublePagedPager
This commit is contained in:
Manchewable
2021-05-28 05:36:55 -07:00
committed by GitHub
parent 77f2f8cc18
commit 1b122d1157
9 changed files with 373 additions and 28 deletions

View File

@@ -286,17 +286,25 @@ export default function ReaderNavBar(props: IProps) {
onChange={(e) => setSettingValue('readerType', e.target.value)}
>
<MenuItem value="SingleLTR">
Left to right
Single Page (LTR)
</MenuItem>
{/* <MenuItem value="SingleRTL">
Right to left(WIP)
<MenuItem value="SingleRTL">
Single Page (RTL)
</MenuItem> */}
</MenuItem>
{/* <MenuItem value="SingleVertical">
Vertical(WIP)
</MenuItem> */}
<MenuItem value="DoubleLTR">
Double Page (LTR)
</MenuItem>
<MenuItem value="DoubleRTL">
Double Page (RTL)
</MenuItem>
<MenuItem value="Webtoon">
Webtoon