Image viewer open: pause timeline URL preview GIF

This commit is contained in:
miruka
2020-09-02 11:40:49 -04:00
parent 377f1ffd4a
commit 5a1ca24e65
2 changed files with 5 additions and 6 deletions

View File

@@ -65,6 +65,7 @@ HMxcImage {
clientUserId: chat.userId
title: thumbnail ? loader.thumbnailTitle : loader.title
animated: eventList.isAnimated(loader.singleMediaInfo, loader.mediaUrl)
forcePause: Object.keys(window.visiblePopups).length > 0
thumbnail: ! animated && loader.thumbnailMxc
mxc: thumbnail ?
(loader.thumbnailMxc || loader.mediaUrl) :
@@ -75,14 +76,10 @@ HMxcImage {
loader.singleMediaInfo.media_crypt_dict
)
onCachedPathChanged:
eventList.thumbnailCachedPaths[loader.singleMediaInfo.id] = cachedPath
Binding on pause {
value: true
when: Object.keys(window.visiblePopups).length > 0
}
TapHandler {
acceptedButtons: Qt.LeftButton
acceptedModifiers: Qt.NoModifier