Reenable still image viewer for WebP until we qmlify the image viewer

This commit is contained in:
Nicolas Werner 2021-11-14 22:18:25 +01:00
parent d26fe37010
commit c6ae336c30
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -46,15 +46,6 @@ Item {
smooth: true
mipmap: true
TapHandler {
enabled: type == MtxEvent.ImageMessage && img.status == Image.Ready
onSingleTapped: {
TimelineManager.openImageOverlay(url, room.data.eventId);
eventPoint.accepted = true;
}
gesturePolicy: TapHandler.ReleaseWithinBounds
}
}
MxcAnimatedImage {
@ -67,6 +58,16 @@ Item {
eventId: parent.eventId
}
TapHandler {
// TODO(Nico): Replace this with a qml thingy, that also can show animated images
enabled: type == MtxEvent.ImageMessage && (img.status == Image.Ready || mxcimage.loaded)
onSingleTapped: {
TimelineManager.openImageOverlay(url, room.data.eventId);
eventPoint.accepted = true;
}
gesturePolicy: TapHandler.ReleaseWithinBounds
}
HoverHandler {
id: mouseArea
}