aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-02-11 01:33:39 +0100
committerdec05eba <dec05eba@protonmail.com>2022-02-11 01:33:39 +0100
commitce947e27e50f5439c3f41526998e0f4dee197d86 (patch)
tree0796eaa8df61d7e8c2bd143b4cf3f234de76cdbd /src
parent224a38f931e24ffad8c99c5b02fd8939783de852 (diff)
ImageViewer: start at top of current page
Diffstat (limited to 'src')
-rw-r--r--src/ImageViewer.cpp2
1 files changed, 0 insertions, 2 deletions
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