mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
ScrollBar: Let clicking the gutter scroll by one page
Shift-clicking has the old behavior of jumping to the click position. This matches scrollbar behavior in macOS and Windows, and in many Linux apps.
This commit is contained in:
parent
326261094d
commit
cdf1282419
2 changed files with 27 additions and 3 deletions
|
@ -87,12 +87,14 @@ private:
|
|||
Gfx::IntRect decrement_gutter_rect() const;
|
||||
Gfx::IntRect increment_gutter_rect() const;
|
||||
Gfx::IntRect scrubber_rect() const;
|
||||
int unclamped_scrubber_size() const;
|
||||
int visible_scrubber_size() const;
|
||||
int scrubbable_range_in_pixels() const;
|
||||
void on_automatic_scrolling_timer_fired();
|
||||
void set_automatic_scrolling_active(bool);
|
||||
|
||||
void scroll_to_position(const Gfx::IntPoint&);
|
||||
void scroll_by_page(const Gfx::IntPoint&);
|
||||
|
||||
int m_min { 0 };
|
||||
int m_max { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue