mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix overscroll in topics list.
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user