2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Improve touch-screen stories overscroll.

This commit is contained in:
John Preston
2023-07-11 21:42:08 +04:00
parent dfd1aa5cd6
commit 05cf8d034e
2 changed files with 2 additions and 3 deletions

View File

@@ -689,8 +689,7 @@ QRect List::countSmallGeometry() const {
const auto &st = _st.small;
const auto layout = const_cast<List*>(this)->computeLayout();
const auto count = layout.endIndexSmall
- layout.startIndexSmall
- layout.smallSkip;
- std::max(layout.startIndexSmall, layout.smallSkip);
const auto width = st.left
+ st.photoLeft
+ st.photo + (count - 1) * st.shift