Configure macOS pull-to-action overscroll distances.

The chat list configures the stories strip height as the pull
distance, the chat history flags the bottom edge with a doubled
threshold whenever the pull to the next channel is available - the
macOS soft linear pull curve reaches a given stretch in about half
the finger travel of the log curve used on other platforms.
This commit is contained in:
alina sireneva
2026-07-15 22:17:09 +04:00
committed by John Preston
parent af1eff6cb0
commit 7bde317cbb
3 changed files with 23 additions and 3 deletions
@@ -436,6 +436,7 @@ Widget::Widget(
_scroll->setOverscrollTypes(
_stories ? OverscrollType::Virtual : OverscrollType::Real,
OverscrollType::Real);
_scroll->setOverscrollPullDistances(st::dialogsStoriesFull.height, 0);
_innerList = _scroll->setOwnedWidget(
object_ptr<Ui::VerticalLayout>(this));
_inner = _innerList->add(object_ptr<InnerWidget>(