From 2116e04af5b4816ab7e9e7ffa2c8cb9f6608336d Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Fri, 6 Sep 2024 11:56:13 +0300 Subject: [PATCH] Allowed to swipe-to-reply only with started initial of touches. --- Telegram/SourceFiles/history/history_view_swipe.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/history/history_view_swipe.cpp b/Telegram/SourceFiles/history/history_view_swipe.cpp index f27f265a1..3279039d3 100644 --- a/Telegram/SourceFiles/history/history_view_swipe.cpp +++ b/Telegram/SourceFiles/history/history_view_swipe.cpp @@ -191,9 +191,7 @@ void SetupSwipeHandler( }; const auto cancel = released(0) || released(1) - || (touchscreen - ? (touches.size() != 1) - : (touches.size() <= 0 || touches.size() > 2)) + || (touches.size() != (touchscreen ? 1 : 2)) || (type == QEvent::TouchEnd) || (type == QEvent::TouchCancel); if (cancel) {