From 474e3d6e2af9c6ecc8f3921fea3a3b0f06c9338d Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Fri, 2 Apr 2021 15:39:29 -0400 Subject: [PATCH] Don't reply on double click in mobile mode I figured that it made the most sense to just split everything into two separate TapHandlers. --- resources/qml/TimelineRow.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/qml/TimelineRow.qml b/resources/qml/TimelineRow.qml index 70ebf91d..4d317fc4 100644 --- a/resources/qml/TimelineRow.qml +++ b/resources/qml/TimelineRow.qml @@ -65,6 +65,7 @@ Item { } TapHandler { + enabled: !Settings.mobileMode onLongPressed: { if (Settings.mobileMode) mobileContextPopup.show(r, model); @@ -76,6 +77,11 @@ Item { gesturePolicy: TapHandler.ReleaseWithinBounds } + TapHandler { + enabled: Settings.mobileMode + onLongPressed: mobileContextPopup.show(timelineRowRoot, model); + } + RowLayout { id: row