From f0afe52743a92a705f66f5507635a4fb6681f117 Mon Sep 17 00:00:00 2001 From: pax Date: Sat, 4 Apr 2026 20:14:51 -0500 Subject: [PATCH] Fix page boundary nav for up/down in slideshow mode Check direction sign (>0/<0) instead of exact value (1/-1) so column-sized jumps from up/down also trigger page turns. --- booru_viewer/gui/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/booru_viewer/gui/app.py b/booru_viewer/gui/app.py index 9cc8dfa..a339386 100644 --- a/booru_viewer/gui/app.py +++ b/booru_viewer/gui/app.py @@ -814,10 +814,10 @@ class BooruApp(QMainWindow): if 0 <= idx < len(self._posts): self._grid._select(idx) self._on_post_activated(idx) - elif idx >= len(self._posts) and direction == 1 and len(self._posts) > 0: + elif idx >= len(self._posts) and direction > 0 and len(self._posts) > 0: self._nav_page_turn = "first" self._next_page() - elif idx < 0 and direction == -1 and self._current_page > 1: + elif idx < 0 and direction < 0 and self._current_page > 1: self._nav_page_turn = "last" self._prev_page()