babluboy / bookworm

A simple ebook reader for Elementary OS
GNU General Public License v3.0
1.32k stars 101 forks source link

Fix position related functionality #332

Closed shiraeeshi closed 3 years ago

shiraeeshi commented 3 years ago

Depends on Undo divide chapters to pages in master branch PR.

Functionality:

babluboy commented 3 years ago

Thanks again for this PR. Now that I have merged both of your PRs, can you please take a look and ensure the functionality is fine

shiraeeshi commented 3 years ago

As far as I know, the functionality is fine, I checked it while debugging and coding before committing, and I've pulled the latest changes before making a PR, it's fine.

shiraeeshi commented 3 years ago

Pulled master branch and checked, it works as intended.

babluboy commented 3 years ago

Excellent - thanks a ton. I will work on the dev branch and try to forward fix the issue and also bring in the related functions like bookmarks, etc. The page reverse was also jumping to the first page of the chapter from the last page of the next chapter, so that needs to be fixed as well. The pagination is a much wanted feature and should be supported by default.

shiraeeshi commented 3 years ago

The pagination is a much wanted feature and should be supported by default.

We can add an entry to settings like "divide chapters to screen-sized pages" and make it enabled by default. And then the contentHandler would check the setting and act accordingly.

I think it will be easier to add this setting from the beginning rather than introducing a lot of changes into the code and then adding a setting.

Can you add the setting before continuing with pagination? I can do it and create a PR.