From b20e2c37c14a62cd04951e2b60d2e6f879a99ba4 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Wed, 4 Sep 2024 17:00:31 +0300 Subject: [PATCH] Fixed build on Qt6. --- 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 b028f6969..b7a95517c 100644 --- a/Telegram/SourceFiles/history/history_view_swipe.cpp +++ b/Telegram/SourceFiles/history/history_view_swipe.cpp @@ -230,7 +230,7 @@ void SetupSwipeHandler( processEnd(); } else { updateWith({ - .globalCursor = w->globalPos(), + .globalCursor = w->globalPosition().toPoint(), .position = QPointF(), .delta = state->delta - Ui::ScrollDelta(w), .touch = false,