|
|
|
@ -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 |
|
|
|
|