mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Jump to chat only by Double-Click on preview.
This commit is contained in:
parent
7d636820ac
commit
28cbb02b20
1 changed files with 1 additions and 1 deletions
|
@ -434,7 +434,7 @@ void Item::setupHistory() {
|
||||||
_scroll->setOverscrollTypes(Type::Real, Type::Real);
|
_scroll->setOverscrollTypes(Type::Real, Type::Real);
|
||||||
|
|
||||||
_scroll->events() | rpl::start_with_next([=](not_null<QEvent*> e) {
|
_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();
|
const auto button = static_cast<QMouseEvent*>(e.get())->button();
|
||||||
if (button == Qt::LeftButton) {
|
if (button == Qt::LeftButton) {
|
||||||
const auto relative = Ui::MapFrom(
|
const auto relative = Ui::MapFrom(
|
||||||
|
|
Loading…
Add table
Reference in a new issue