diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-27 20:19:07 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-27 20:19:07 +0200 |
commit | 661d029d7ae4e98feda6dcef745f6044e8dfca9f (patch) | |
tree | 1bfe11b77ebcd6dab176b7cf4dd4b152a3ef9c1b /resources/qml/TimelineBubbleMessageStyle.qml | |
parent | 6fef6ad5f1c7138ebe0bc07174ad28a62c493231 (diff) |
Bring back double tap and drag to reply
Diffstat (limited to 'resources/qml/TimelineBubbleMessageStyle.qml')
-rw-r--r-- | resources/qml/TimelineBubbleMessageStyle.qml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/resources/qml/TimelineBubbleMessageStyle.qml b/resources/qml/TimelineBubbleMessageStyle.qml index 6ca5c8e1..add701a1 100644 --- a/resources/qml/TimelineBubbleMessageStyle.qml +++ b/resources/qml/TimelineBubbleMessageStyle.qml @@ -281,6 +281,8 @@ TimelineEvent { data: [replyRow, wrapper.main] } + + } padding: wrapper.isStateEvent ? 0 : 4 @@ -291,6 +293,27 @@ TimelineEvent { border.width: wrapper.notificationlevel == MtxEvent.Highlight ? 1 : 0 } } + + DragHandler { + id: replyDragHandler + yAxis.enabled: false + xAxis.enabled: true + xAxis.minimum: wrapper.avatarMargin - 100 + xAxis.maximum: wrapper.avatarMargin + onActiveChanged: { + if (!replyDragHandler.active) { + if (replyDragHandler.xAxis.minimum <= replyDragHandler.xAxis.activeValue + 1) { + wrapper.room.reply = wrapper.eventId + } + gridContainer.x = wrapper.avatarMargin; + } + } + } + + TapHandler { + onDoubleTapped: wrapper.room.reply = wrapper.eventId + } + }, Reactions { id: reactionRow |