Download images when clicking on them
This commit is contained in:
@@ -21,7 +21,7 @@ export component ImageViewer inherits Rectangle {
|
||||
interval: 0.2s;
|
||||
triggered => {
|
||||
self.running = false;
|
||||
Global.previewed-image.asset-id = "";
|
||||
Global.viewed-image.asset-id = "";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,6 +64,8 @@ export component ImageViewer inherits Rectangle {
|
||||
Image {
|
||||
source: image;
|
||||
image-fit: ImageFit.contain;
|
||||
width: root.width;
|
||||
height: root.height;
|
||||
|
||||
function calc-y() -> length {
|
||||
parent.y + parent.height / 2 - self.height / 2
|
||||
|
||||
Reference in New Issue
Block a user