diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-02-11 02:04:20 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-02-11 02:04:20 +0100 |
commit | 6f2648422107c8760b3e7717fc9b6693e37fcd92 (patch) | |
tree | feaa2045e755ebffa291d0334a34203dbc94bef2 /include | |
parent | ce947e27e50f5439c3f41526998e0f4dee197d86 (diff) |
ImageViewer: make closest image the top of the image and limit first/last image to bottom/top of the image instead of center
Diffstat (limited to 'include')
-rw-r--r-- | include/ImageViewer.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/ImageViewer.hpp b/include/ImageViewer.hpp index 182a6a2..c1fb6ad 100644 --- a/include/ImageViewer.hpp +++ b/include/ImageViewer.hpp @@ -61,7 +61,6 @@ namespace QuickMedia { int current_page; int num_pages; - int page_center; std::string content_title; std::string chapter_title; @@ -69,8 +68,8 @@ namespace QuickMedia { double scroll = 0.0; double scroll_speed = 0.0; - double min_page_center_dist; - int page_closest_to_center; + double min_page_top_dist; + int page_closest_to_top; int focused_page; int prev_focused_page = -1; |