2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Improve touchscreen chats list stories physics.

This commit is contained in:
John Preston
2023-06-27 21:25:36 +04:00
parent fba1b79252
commit 71e341237d
7 changed files with 46 additions and 2 deletions

View File

@@ -479,6 +479,10 @@ rpl::producer<bool> InnerWidget::storiesExpandedRequests() const {
_storiesExpandedRequests.events());
}
void InnerWidget::setTouchScrollActive(bool active) {
_stories->setTouchScrollActive(active);
}
int InnerWidget::defaultScrollTop() const {
return storiesShown()
? std::max(_stories->height() - st::dialogsStories.height, 0)