mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 08:05:12 +00:00
Added ability to go to top of media panel by clicking on selected tab.
This commit is contained in:
@@ -782,6 +782,7 @@ void TabbedSelector::switchTab() {
|
||||
Assert(tab >= 0 && tab < Tab::kCount);
|
||||
auto newTabType = static_cast<SelectorTab>(tab);
|
||||
if (_currentTabType == newTabType) {
|
||||
_scroll->scrollToY(0);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user