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.
This commit is contained in:
Loren Burkholder 2021-04-02 15:39:29 -04:00
parent 2bf6a9083e
commit 474e3d6e2a

View file

@ -65,6 +65,7 @@ Item {
} }
TapHandler { TapHandler {
enabled: !Settings.mobileMode
onLongPressed: { onLongPressed: {
if (Settings.mobileMode) if (Settings.mobileMode)
mobileContextPopup.show(r, model); mobileContextPopup.show(r, model);
@ -76,6 +77,11 @@ Item {
gesturePolicy: TapHandler.ReleaseWithinBounds gesturePolicy: TapHandler.ReleaseWithinBounds
} }
TapHandler {
enabled: Settings.mobileMode
onLongPressed: mobileContextPopup.show(timelineRowRoot, model);
}
RowLayout { RowLayout {
id: row id: row