mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Fixed selecting of stickers in userpic emoji builder.
This commit is contained in:
@@ -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());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user