Added ability to scroll vertical layout during reordering.

Updated lib_ui.
This commit is contained in:
23rd 2020-03-28 17:35:43 +03:00
parent 09bc3eefdb
commit 7b583596ec
2 changed files with 3 additions and 2 deletions

View File

@ -127,6 +127,7 @@ void FiltersMenu::setup() {
_all->setActive(true);
scrollToButton(_all);
}
_reorder->finishReordering();
}, _outer.lifetime());
_menu.setClickedCallback([=] {
@ -198,7 +199,7 @@ void FiltersMenu::setupList() {
-1,
tr::lng_filters_setup(tr::now),
Ui::FilterIcon::Setup);
_reorder = std::make_unique<Ui::VerticalLayoutReorder>(_list);
_reorder = std::make_unique<Ui::VerticalLayoutReorder>(_list, &_scroll);
_reorder->updates(
) | rpl::start_with_next([=](Ui::VerticalLayoutReorder::Single data) {

@ -1 +1 @@
Subproject commit 730816ef5219cbe7f1588bec2fe9adacd11739c8
Subproject commit 23009b62add39f22cca27438a17f83762d8c2f94