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

Support touchscreen pinned chats reordering.

This commit is contained in:
John Preston
2024-05-30 23:22:03 +04:00
parent 4df5372dab
commit 4953246c5d
3 changed files with 90 additions and 28 deletions

View File

@@ -658,8 +658,7 @@ void Widget::setupScrollUpButton() {
void Widget::setupTouchChatPreview() {
_scroll->setCustomTouchProcess([=](not_null<QTouchEvent*> e) {
_inner->processTouchEvent(e);
return false;
return _inner->processTouchEvent(e);
});
_inner->touchCancelRequests() | rpl::start_with_next([=] {
QTouchEvent ev(QEvent::TouchCancel);