aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-07-16 15:11:28 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-16 15:11:28 +0200
commitcfc9e41222111ba0d87f0777b10091befda3e84a (patch)
tree925a6063d38815308b67d709df568c11aec6e3a1 /include
parent170d2e7b14fcdbd88fd2839bbd3dffd00df5196b (diff)
Add middle-mouse-scroll (aka autoscroll) for infinite image view mode
Diffstat (limited to 'include')
-rw-r--r--include/ImageViewer.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/ImageViewer.hpp b/include/ImageViewer.hpp
index ed3363d..68eaa05 100644
--- a/include/ImageViewer.hpp
+++ b/include/ImageViewer.hpp
@@ -65,5 +65,13 @@ namespace QuickMedia {
sf::Vector2<double> window_size;
bool window_size_set = false;
+ bool middle_mouse_scrolling = false;
+ double autoscroll_start_y = 0.0;
+
+ sf::Cursor default_cursor;
+ sf::Cursor size_vertical_cursor;
+
+ bool has_default_cursor;
+ bool has_size_vertical_cursor;
};
} \ No newline at end of file