+
@@ -30,11 +36,37 @@ import { Component, Vue, Prop } from "vue-property-decorator";
export default class GalleryPicture extends Vue {
@Prop({ required: true }) readonly picture!: Gallery.Picture;
+ dragging: boolean = false;
+
get pictureSrc() {
return `${process.env.VUE_APP_DATA_URL}${this.picture.properties.resource}`;
}
+
+ onClick() {
+ if (!this.dragging) this.$uiStore.toggleFullscreen();
+ this.dragging = false;
+ }
}
diff --git a/viewer/src/views/MainLayout.vue b/viewer/src/views/MainLayout.vue
index 1528e64..7a75eb1 100644
--- a/viewer/src/views/MainLayout.vue
+++ b/viewer/src/views/MainLayout.vue
@@ -22,7 +22,6 @@
-