diff --git a/Telegram/SourceFiles/boxes/stickers_box.cpp b/Telegram/SourceFiles/boxes/stickers_box.cpp index 0455a7d20..f8853e4bd 100644 --- a/Telegram/SourceFiles/boxes/stickers_box.cpp +++ b/Telegram/SourceFiles/boxes/stickers_box.cpp @@ -436,6 +436,7 @@ void StickersBox::switchTab() { requestArchivedSets(); } if (_tab == newTab) { + onScrollToY(0); return; } diff --git a/Telegram/SourceFiles/chat_helpers/tabbed_selector.cpp b/Telegram/SourceFiles/chat_helpers/tabbed_selector.cpp index 695ee187e..843c6feba 100644 --- a/Telegram/SourceFiles/chat_helpers/tabbed_selector.cpp +++ b/Telegram/SourceFiles/chat_helpers/tabbed_selector.cpp @@ -782,6 +782,7 @@ void TabbedSelector::switchTab() { Assert(tab >= 0 && tab < Tab::kCount); auto newTabType = static_cast(tab); if (_currentTabType == newTabType) { + _scroll->scrollToY(0); return; } diff --git a/Telegram/SourceFiles/ui/widgets/discrete_sliders.cpp b/Telegram/SourceFiles/ui/widgets/discrete_sliders.cpp index ba975e589..aa2cd5e03 100644 --- a/Telegram/SourceFiles/ui/widgets/discrete_sliders.cpp +++ b/Telegram/SourceFiles/ui/widgets/discrete_sliders.cpp @@ -17,10 +17,8 @@ DiscreteSlider::DiscreteSlider(QWidget *parent) : RpWidget(parent) { } void DiscreteSlider::setActiveSection(int index) { - if (_activeIndex != index) { - _activeIndex = index; - activateCallback(); - } + _activeIndex = index; + activateCallback(); setSelectedSection(index); }