Port timeline mouseare to tap handler

This fix inconsistency in behavior
This commit is contained in:
Carl Schwan
2020-12-03 17:38:57 +01:00
parent 93cee871ba
commit d63811471c
2 changed files with 8 additions and 16 deletions

View File

@@ -250,11 +250,7 @@ Kirigami.ScrollablePage {
Layout.fillWidth: true
Layout.maximumWidth: messageListView.width
isEmote: true
mouseArea: MouseArea {
acceptedButtons: Qt.RightButton
anchors.fill: parent
onClicked: openMessageContext(author, display, eventId, toolTip);
}
onOpenContextMenu: openMessageContext(author, display, eventId, toolTip)
onReplyClicked: goToEvent(eventID)
onReplyToMessageClicked: replyToMessage(replyUser, replyContent, eventId);
innerObject: [
@@ -280,16 +276,7 @@ Kirigami.ScrollablePage {
innerObject: MessageDelegate {
Layout.fillWidth: true
Layout.maximumWidth: messageListView.width
mouseArea: MouseArea {
acceptedButtons: (Kirigami.Settings.isMobile ? Qt.LeftButton : 0) | Qt.RightButton
anchors.fill: parent
onClicked: {
if (mouse.button == Qt.RightButton) {
openMessageContext(author, display, eventId, toolTip);
}
}
onPressAndHold: openMessageContext(author, display, eventId, toolTip);
}
onOpenContextMenu: openMessageContext(author, display, eventId, toolTip)
onReplyClicked: goToEvent(eventID)
onReplyToMessageClicked: replyToMessage(replyUser, replyContent, eventId);
innerObject: [