From dfb66001045e11d37679ce59231b2a5651201e40 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 3 Jun 2025 16:13:42 +0400 Subject: [PATCH] Fix loading of horizontal avatar strip. --- .../SourceFiles/history/view/history_view_subsection_tabs.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/history_view_subsection_tabs.cpp b/Telegram/SourceFiles/history/view/history_view_subsection_tabs.cpp index 886044ed20..5757d7b89e 100644 --- a/Telegram/SourceFiles/history/view/history_view_subsection_tabs.cpp +++ b/Telegram/SourceFiles/history/view/history_view_subsection_tabs.cpp @@ -201,7 +201,9 @@ void SubsectionTabs::setupSlider( rpl::merge( scroll->scrolls(), _scrollCheckRequests.events(), - scroll->heightValue() | rpl::skip(1) | rpl::map_to(rpl::empty) + (vertical + ? scroll->heightValue() + : scroll->widthValue()) | rpl::skip(1) | rpl::map_to(rpl::empty) ) | rpl::start_with_next([=] { const auto full = vertical ? scroll->height() : scroll->width(); const auto scrollValue = vertical