From c0602432011d987548e35d84c135e4f6a6ba4283 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Thu, 2 Oct 2025 15:41:16 +0300 Subject: [PATCH] Respected system-wide preference for disabling swipe-to-back on macOS. --- Telegram/SourceFiles/ui/controls/swipe_handler.cpp | 4 +++- Telegram/lib_base | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/ui/controls/swipe_handler.cpp b/Telegram/SourceFiles/ui/controls/swipe_handler.cpp index b39afc3b06..bd0237c53f 100644 --- a/Telegram/SourceFiles/ui/controls/swipe_handler.cpp +++ b/Telegram/SourceFiles/ui/controls/swipe_handler.cpp @@ -202,7 +202,9 @@ void SetupSwipeHandler(SwipeHandlerArgs &&args) { *state->direction); state->threshold = style::ConvertFloatScale(kThresholdWidth) * state->finishByTopData.speedRatio; - if (!state->finishByTopData.callback) { + if (!state->finishByTopData.callback + || (state->finishByTopData.msgBareId == kMsgBareIdSwipeBack + && !base::Platform::IsSwipeBackEnabled())) { setOrientation(Qt::Vertical); } }; diff --git a/Telegram/lib_base b/Telegram/lib_base index 18a2b26b94..42b01c4726 160000 --- a/Telegram/lib_base +++ b/Telegram/lib_base @@ -1 +1 @@ -Subproject commit 18a2b26b9412f51b5b75dbec1f7cd111794a72b4 +Subproject commit 42b01c4726b25bb09bf16ad4d1503a7875483519