mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-22 16:26:52 +00:00
Fix overscroll in topics list.
This commit is contained in:
parent
7d98acb4a3
commit
39a1743e7e
@ -226,9 +226,10 @@ Widget::Widget(
|
|||||||
const auto makeChildListShown = [](PeerId peerId, float64 shown) {
|
const auto makeChildListShown = [](PeerId peerId, float64 shown) {
|
||||||
return InnerWidget::ChildListShown{ peerId, shown };
|
return InnerWidget::ChildListShown{ peerId, shown };
|
||||||
};
|
};
|
||||||
|
using OverscrollType = Ui::ElasticScroll::OverscrollType;
|
||||||
_scroll->setOverscrollTypes(
|
_scroll->setOverscrollTypes(
|
||||||
Ui::ElasticScroll::OverscrollType::Virtual,
|
_stories ? OverscrollType::Virtual : OverscrollType::Real,
|
||||||
Ui::ElasticScroll::OverscrollType::Real);
|
OverscrollType::Real);
|
||||||
_inner = _scroll->setOwnedWidget(object_ptr<InnerWidget>(
|
_inner = _scroll->setOwnedWidget(object_ptr<InnerWidget>(
|
||||||
this,
|
this,
|
||||||
controller,
|
controller,
|
||||||
|
Loading…
Reference in New Issue
Block a user