Commit Graph
5 Commits
Author SHA1 Message Date
schroda b12e28346c Improve reader infinite scroll chapter change detection
A 10% intersection threshold does not work for pages that are so long that 10% of the page will never be in the viewport
2025-02-05 21:23:20 +01:00
schroda 5e8b5545a6 Add comments to functions 2025-02-05 15:26:40 +01:00
schroda 34ebcc4f4c Improve naming of functions and variables 2025-02-05 15:17:48 +01:00
schroda 155f58b92d Consider only relevant element intersection for open prev/next chapter
In the "vertical mode" intersection changes for the left or right side of the element do not matter.
Same for "horizontal mode" the other way around.

If not handled accordingly, it would cause unwanted chapter changes.
2025-02-05 15:17:46 +01:00
schroda 4a9d2903b8 Add infinite scroll to reader 2025-02-03 17:17:35 +01:00