From 28cbb02b2099a4e43c1bccfc7f43b8db0a825cfe Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 30 May 2024 10:40:30 +0400 Subject: [PATCH] Jump to chat only by Double-Click on preview. --- Telegram/SourceFiles/history/view/history_view_chat_preview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/history_view_chat_preview.cpp b/Telegram/SourceFiles/history/view/history_view_chat_preview.cpp index 4baed10bb..56d7f648c 100644 --- a/Telegram/SourceFiles/history/view/history_view_chat_preview.cpp +++ b/Telegram/SourceFiles/history/view/history_view_chat_preview.cpp @@ -434,7 +434,7 @@ void Item::setupHistory() { _scroll->setOverscrollTypes(Type::Real, Type::Real); _scroll->events() | rpl::start_with_next([=](not_null e) { - if (e->type() == QEvent::MouseButtonPress) { + if (e->type() == QEvent::MouseButtonDblClick) { const auto button = static_cast(e.get())->button(); if (button == Qt::LeftButton) { const auto relative = Ui::MapFrom(