Fix stickers list footer last icon.

This commit is contained in:
John Preston 2022-08-15 14:23:07 +03:00
parent c126a1e56e
commit 2846b2f7a5
1 changed files with 1 additions and 1 deletions

View File

@ -967,7 +967,7 @@ void StickersListFooter::refreshIcons(
void StickersListFooter::refreshScrollableDimensions() {
const auto &last = iconInfo(_icons.size() - 1);
_iconState.max = std::max(
last.left + last.width + _iconsRight - width(),
last.left + last.width + _iconsLeft + _iconsRight - width(),
0);
if (_iconState.x.current() > _iconState.max) {
_iconState.x = anim::value(_iconState.max, _iconState.max);