From 768712e2536969e44d900aca5e28618218abb590 Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 1 Mar 2021 00:27:46 +0300 Subject: chatlist: do not intercept left button It makes hard to select chat. Something should be done on mobile platforms without RMB later. --- qml/ChatlistPage.qml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/qml/ChatlistPage.qml b/qml/ChatlistPage.qml index 7b7aeff..98fd19c 100644 --- a/qml/ChatlistPage.qml +++ b/qml/ChatlistPage.qml @@ -144,15 +144,11 @@ Kirigami.Page { MouseArea { anchors.fill: parent - acceptedButtons: Qt.LeftButton | Qt.RightButton + acceptedButtons: Qt.RightButton onClicked: { if (mouse.button === Qt.RightButton) contextMenu.popup() } - onPressAndHold: { - if (mouse.source === Qt.MouseEventNotSynthesized) - contextMenu.popup() - } Menu { id: contextMenu -- cgit v1.2.3-54-g00ecf