mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibGUI: Move the editing widget along with the content when scrolling.
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user