mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-22 10:27:09 +00:00
Jump to chat only by Double-Click on preview.
This commit is contained in:
parent
7d636820ac
commit
28cbb02b20
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user