mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 09:05:14 +00:00
Replaced timer for dragging scroll in Dialogs::Widget with manager.
This commit is contained in:
@@ -1130,7 +1130,7 @@ void InnerWidget::finishReorderPinned() {
|
||||
_aboveIndex = -1;
|
||||
}
|
||||
if (wasDragging) {
|
||||
draggingScrollDelta(0);
|
||||
_draggingScroll.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1220,7 +1220,7 @@ bool InnerWidget::updateReorderPinned(QPoint localPosition) {
|
||||
return 0;
|
||||
}();
|
||||
|
||||
draggingScrollDelta(delta);
|
||||
_draggingScroll.checkDeltaScroll(delta);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1930,6 +1930,10 @@ rpl::producer<> InnerWidget::updated() const {
|
||||
return _updated.events();
|
||||
}
|
||||
|
||||
rpl::producer<int> InnerWidget::scrollByDeltaRequests() const {
|
||||
return _draggingScroll.scrolls();
|
||||
}
|
||||
|
||||
rpl::producer<> InnerWidget::listBottomReached() const {
|
||||
return _listBottomReached.events();
|
||||
}
|
||||
|
Reference in New Issue
Block a user