1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:07:34 +00:00

WindowServer: Add "Natural scrolling" support

Also commonly referred to as "reverse scrolling" or "inverted
scrolling".
This commit is contained in:
Filiph Sandström 2022-11-30 13:45:35 +01:00 committed by Linus Groh
parent bef9ad4e44
commit 5a083c03a6
7 changed files with 39 additions and 1 deletions

View file

@ -153,6 +153,8 @@ public:
int double_click_speed() const;
void set_buttons_switched(bool);
bool get_buttons_switched() const;
void set_natural_scroll(bool);
bool is_natural_scroll() const;
void set_active_window(Window*);
void set_hovered_button(Button*);
@ -433,6 +435,7 @@ private:
int m_max_distance_for_double_click { 4 };
bool m_previous_event_was_super_keydown { false };
bool m_buttons_switched { false };
bool m_natural_scroll { false };
bool m_theme_overridden { false };
WeakPtr<Window> m_hovered_window;