mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 06:25:08 +00:00
LibGUI: Move the editing widget along with the content when scrolling.
This commit is contained in:
parent
568f3125f3
commit
9cab7a0707
5 changed files with 21 additions and 1 deletions
|
@ -7,6 +7,7 @@ GScrollableWidget::GScrollableWidget(GWidget* parent)
|
|||
m_vertical_scrollbar = new GScrollBar(Orientation::Vertical, this);
|
||||
m_vertical_scrollbar->set_step(4);
|
||||
m_vertical_scrollbar->on_change = [this] (int) {
|
||||
did_scroll();
|
||||
update();
|
||||
};
|
||||
|
||||
|
@ -14,6 +15,7 @@ GScrollableWidget::GScrollableWidget(GWidget* parent)
|
|||
m_horizontal_scrollbar->set_step(4);
|
||||
m_horizontal_scrollbar->set_big_step(30);
|
||||
m_horizontal_scrollbar->on_change = [this] (int) {
|
||||
did_scroll();
|
||||
update();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue