Files
ladybird/Userland/Libraries/LibGUI
Marcus Nilsson eec411c508 LibGUI: Add a AutoScroll timer to AbstractScrollableWidget
This commit adds a timer to AbstractScrollableWidget that can be used
when implementing automatic scrolling. By overriding
on_automatic_scrolling_timer_fired() we can calculate the scrolling
delta when dragging objects, and redraw as needed. A helper function,
automatic_scroll_delta_from_position() gives us a delta that
we can use to calculate speed and direction. By default
m_autoscroll_threshold is 20 pixels from the edge, and gives a linear
change in scroll delta.
2021-09-16 22:29:21 +02:00
..
2021-07-13 17:54:37 +02:00
2021-04-23 16:46:57 +02:00
2021-09-03 02:32:43 +02:00
2021-08-18 10:39:13 +02:00
2021-08-18 10:39:13 +02:00
2021-08-06 23:35:48 +02:00
2021-08-06 23:35:48 +02:00