mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-11 06:03:40 +00:00
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:
committed by
John Preston
parent
af1eff6cb0
commit
7bde317cbb
@@ -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>(
|
||||
|
||||
Reference in New Issue
Block a user