Jump to chat only by Double-Click on preview.

This commit is contained in:
John Preston 2024-05-30 10:40:30 +04:00
parent 7d636820ac
commit 28cbb02b20

View file

@ -434,7 +434,7 @@ void Item::setupHistory() {
_scroll->setOverscrollTypes(Type::Real, Type::Real);
_scroll->events() | rpl::start_with_next([=](not_null<QEvent*> e) {
if (e->type() == QEvent::MouseButtonPress) {
if (e->type() == QEvent::MouseButtonDblClick) {
const auto button = static_cast<QMouseEvent*>(e.get())->button();
if (button == Qt::LeftButton) {
const auto relative = Ui::MapFrom(