mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Reenable still image viewer for WebP until we qmlify the image viewer
This commit is contained in:
parent
d26fe37010
commit
c6ae336c30
1 changed files with 10 additions and 9 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue