2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Scroll to field on search query update.

This commit is contained in:
John Preston
2017-11-06 14:00:37 +04:00
parent 3992ff6b59
commit 11a3308cf5
5 changed files with 25 additions and 9 deletions

View File

@@ -88,8 +88,8 @@ Widget::Widget(
this,
controller));
_inner->scrollToRequests()
| rpl::start_with_next([this](int skip) {
scrollTo({ skip, -1 });
| rpl::start_with_next([this](Ui::ScrollToRequest request) {
scrollTo(request);
}, _inner->lifetime());
}