baskerville / plato

Document reader
Other
1.26k stars 105 forks source link

Option to disable continuous scrolling #252

Closed paulrouget closed 2 years ago

paulrouget commented 2 years ago

When reading comics, and zoom is set to fit the width, the bottom of the page is not visible (as expected). Going to next page will show the missing piece, and also show the top of the next page.

KOReader has an option to disable this behavior (page mode instead of continuous mode) and only scroll the page up to reveal the bottom part. Basically just doing a tiny jump. Then going to the next page show the top of the next image.

Would that be possible to have such a feature in Plato?


    Mode: continuous                          Mode: page
   ┌────────────────┐   ┌────────────────┐   ┌────────────────┐
   │                │   │                │   │                │
   │ Screen 1       │   │  Page 1        │   │Screen 1        │
   │                │   │                │   ├────────────────┤
   │                │   │                │   │                │
   │                │   │                │   │Screen 2        │
   │                │   │                │   │                │
   │                │   │                │   │                │
   │                │   │                │   │                │
   ├────────────────┤   │                │   ├────────────────┤
   │                │   │                │   │                │
   │ Screen 2       │   │                │   │                │
   │                │   ├────────────────┤   └────────────────┘
   │                │   │                │
   │                │   │  Page 2        │
   │                │   │                │
   │                │   │                │
   │                │   │                │
   └────────────────┘   │                │
                        │                │
                        │                │
                        │                │
                        │                │
                        │                │
                        └────────────────┘
baskerville commented 2 years ago

Yes, I'm working on it.

baskerville commented 2 years ago

As of 2e900ed, just set:

continuous-fit-to-width = false

in the reader section of Settings.toml.