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) {