From 6c5036ee8d382f81aaf3347f1236a6ebca3579e8 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 5 Sep 2024 11:52:25 +0400 Subject: [PATCH] Fix typo in swipe-to-reply through QWheelEvent. --- Telegram/SourceFiles/history/history_view_swipe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_view_swipe.cpp b/Telegram/SourceFiles/history/history_view_swipe.cpp index 794592239..f27f265a1 100644 --- a/Telegram/SourceFiles/history/history_view_swipe.cpp +++ b/Telegram/SourceFiles/history/history_view_swipe.cpp @@ -229,7 +229,7 @@ void SetupSwipeHandler( if (cancel) { processEnd(); } else { - const auto invert = (w->inverted() ? 1 : 0); + const auto invert = (w->inverted() ? -1 : 1); updateWith({ .globalCursor = w->globalPosition().toPoint(), .position = QPointF(),