Fix by allowing RoomPage to access the interactive property of the timeline
This commit is contained in:
@@ -133,6 +133,7 @@ MessageDelegate {
|
|||||||
if (root.mediaInfo.animated) {
|
if (root.mediaInfo.animated) {
|
||||||
imageContainer.imageItem.paused = true
|
imageContainer.imageItem.paused = true
|
||||||
}
|
}
|
||||||
|
root.ListView.view.interactive = false
|
||||||
// We need to make sure the index is that of the MediaMessageFilterModel.
|
// We need to make sure the index is that of the MediaMessageFilterModel.
|
||||||
if (root.ListView.view.model instanceof MessageFilterModel) {
|
if (root.ListView.view.model instanceof MessageFilterModel) {
|
||||||
RoomManager.maximizeMedia(RoomManager.mediaMessageFilterModel.getRowForSourceItem(root.index))
|
RoomManager.maximizeMedia(RoomManager.mediaMessageFilterModel.getRowForSourceItem(root.index))
|
||||||
|
|||||||
@@ -286,6 +286,7 @@ Kirigami.Page {
|
|||||||
initialIndex: index
|
initialIndex: index
|
||||||
})
|
})
|
||||||
popup.closed.connect(() => {
|
popup.closed.connect(() => {
|
||||||
|
timelineViewLoader.item.interactive = true
|
||||||
popup.destroy()
|
popup.destroy()
|
||||||
})
|
})
|
||||||
popup.open()
|
popup.open()
|
||||||
|
|||||||
@@ -52,6 +52,8 @@ QQC2.ScrollView {
|
|||||||
|
|
||||||
readonly property bool atYEnd: messageListView.atYEnd
|
readonly property bool atYEnd: messageListView.atYEnd
|
||||||
|
|
||||||
|
property alias interactive: messageListView.interactive
|
||||||
|
|
||||||
/// Used to determine if scrolling to the bottom should mark the message as unread
|
/// Used to determine if scrolling to the bottom should mark the message as unread
|
||||||
property bool hasScrolledUpBefore: false;
|
property bool hasScrolledUpBefore: false;
|
||||||
|
|
||||||
|
|||||||
@@ -290,6 +290,7 @@ MessageDelegate {
|
|||||||
text: i18n("Maximize")
|
text: i18n("Maximize")
|
||||||
icon.name: "view-fullscreen"
|
icon.name: "view-fullscreen"
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
|
root.ListView.view.interactive = false
|
||||||
vid.pause()
|
vid.pause()
|
||||||
// We need to make sure the index is that of the MediaMessageFilterModel.
|
// We need to make sure the index is that of the MediaMessageFilterModel.
|
||||||
if (root.ListView.view.model instanceof MessageFilterModel) {
|
if (root.ListView.view.model instanceof MessageFilterModel) {
|
||||||
|
|||||||
Reference in New Issue
Block a user