Fixed selecting of stickers in userpic emoji builder.
This commit is contained in:
parent
9c43f9c3e2
commit
a23bd5f3ff
|
@ -279,10 +279,11 @@ void EmojiSelector::createSelector(Type type) {
|
||||||
createSelector(isEmoji ? Type::Stickers : Type::Emoji);
|
createSelector(isEmoji ? Type::Stickers : Type::Emoji);
|
||||||
});
|
});
|
||||||
|
|
||||||
_scroll->scrollTopChanges(
|
rpl::combine(
|
||||||
) | rpl::start_with_next([=] {
|
_scroll->scrollTopValue(),
|
||||||
const auto scrollTop = _scroll->scrollTop();
|
_scroll->heightValue()
|
||||||
const auto scrollBottom = scrollTop + _scroll->height();
|
) | rpl::start_with_next([=](int scrollTop, int scrollHeight) {
|
||||||
|
const auto scrollBottom = scrollTop + scrollHeight;
|
||||||
selector.list->setVisibleTopBottom(scrollTop, scrollBottom);
|
selector.list->setVisibleTopBottom(scrollTop, scrollBottom);
|
||||||
}, selector.list->lifetime());
|
}, selector.list->lifetime());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue