diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-16 15:11:28 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-16 15:11:28 +0200 |
commit | cfc9e41222111ba0d87f0777b10091befda3e84a (patch) | |
tree | 925a6063d38815308b67d709df568c11aec6e3a1 /include | |
parent | 170d2e7b14fcdbd88fd2839bbd3dffd00df5196b (diff) |
Add middle-mouse-scroll (aka autoscroll) for infinite image view mode
Diffstat (limited to 'include')
-rw-r--r-- | include/ImageViewer.hpp | 8 |
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 |