From ce947e27e50f5439c3f41526998e0f4dee197d86 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 11 Feb 2022 01:33:39 +0100 Subject: ImageViewer: start at top of current page --- TODO | 3 ++- src/ImageViewer.cpp | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 0d3d941..3831666 100644 --- a/TODO +++ b/TODO @@ -216,4 +216,5 @@ Cleanup font sizes that are not visible (or not used for a while). Also do the s Show video upload date in video description on youtube. Add latest read chapter name to manga progress, to easily see from manga list page how we have progressed in the manga. Allow changing manga sorting in gui (especially for local manga). -Allow using ~ and $HOME in config file. \ No newline at end of file +Allow using ~ and $HOME in config file. +Save manga "I" mode to file and load it on startup. \ No newline at end of file diff --git a/src/ImageViewer.cpp b/src/ImageViewer.cpp index c18ba92..f568402 100644 --- a/src/ImageViewer.cpp +++ b/src/ImageViewer.cpp @@ -215,8 +215,6 @@ namespace QuickMedia { if(i < current_page) scroll -= scroll_diff; } - - scroll -= (get_page_size(current_page).y * 0.5 - window_size.y * 0.5); } // TODO: Only redraw when scrolling and when image has finished downloading -- cgit v1.2.3