From 970b0c82d3ca24dd99617d1aed33fc5b68cc4370 Mon Sep 17 00:00:00 2001 From: miruka Date: Mon, 2 Sep 2019 13:29:05 -0400 Subject: [PATCH] Disable long press to open context menu Interferes with drag-scrolling for HTileDelegate --- TODO.md | 2 ++ src/qml/Base/HTileDelegate.qml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 3c20f111..45b00721 100644 --- a/TODO.md +++ b/TODO.md @@ -11,6 +11,7 @@ - When qml syntax highlighting supports ES6 string interpolation, use them - Fixes + - `minutesBetween()` for 13:13:58 and 14:15:07 - `# > quote` doesn't color - Pressing backspace in composer sometimes doesn't work - Message order isn't preserved when sending a first message in a E2E @@ -30,6 +31,7 @@ - Set an explicit placeholder text color for text field/area - Change typing bar background - Show error if uploading avatar fails or file is corrupted + - Way to open context menus without a right mouse button - Single message context menu - Copy text diff --git a/src/qml/Base/HTileDelegate.qml b/src/qml/Base/HTileDelegate.qml index 85243b54..e2a6a7fd 100644 --- a/src/qml/Base/HTileDelegate.qml +++ b/src/qml/Base/HTileDelegate.qml @@ -104,6 +104,6 @@ HButton { TapHandler { acceptedButtons: Qt.LeftButton | Qt.RightButton - onLongPressed: if (contextMenu.count > 0) contextMenu.popup() + // onLongPressed: if (contextMenu.count > 0) contextMenu.popup() } }