mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 06:07:59 +00:00
LibGUI: Implement automatic scrolling in AbstractView
This adds automatic scrolling when dragging items in TreeViews and other widgets that inherit from AbstractView when the overloaded accepts_drag() returns true. This is implemented in FileSystemModel to allow directories and files to be dragged.
This commit is contained in:
committed by
Andreas Kling
parent
53cfc6ec9f
commit
d660e86d13
@@ -100,6 +100,8 @@ protected:
|
||||
|
||||
void move_cursor_relative(int vertical_steps, int horizontal_steps, SelectionUpdate);
|
||||
|
||||
virtual Gfx::IntPoint automatic_scroll_delta_from_position(const Gfx::IntPoint& pos) const override;
|
||||
|
||||
private:
|
||||
void layout_headers();
|
||||
bool is_navigation(GUI::KeyEvent&);
|
||||
|
||||
Reference in New Issue
Block a user