mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-20 16:13:46 +08:00
fix gap above dialog search results
This commit is contained in:
committed by
John Preston
parent
3c690227d0
commit
3e87da7ccd
@@ -2772,6 +2772,12 @@ void Widget::updateStoriesVisibility() {
|
||||
|| (pulledDown && hiddenAnimated);
|
||||
const auto hidden = hiddenInstant || hiddenAnimated;
|
||||
const auto changed = (_stories->toggledHidden() != hidden);
|
||||
if (changed
|
||||
&& hidden
|
||||
&& (_storiesExplicitExpand
|
||||
|| _storiesExplicitExpandValue.current() > 0)) {
|
||||
storiesExplicitCollapse();
|
||||
}
|
||||
_stories->setToggledHidden(hiddenInstant, hiddenAnimated);
|
||||
if (changed) {
|
||||
using Type = Ui::ElasticScroll::OverscrollType;
|
||||
|
||||
Reference in New Issue
Block a user