Created a temporary function that will replace thumb to lg in the url, giving us raw image in fullscreen mode.

This commit is contained in:
2019-03-03 23:53:05 +01:00
parent eddc67d662
commit 2387abfc9f

View File

@@ -2,7 +2,7 @@
<div class="popover">
<div class="popover-content" @click="hidePopover" v-touch:swipe.left="backwards" v-touch:swipe.right="forwards">
<div class="image-container">
<img :src="album[index].url" />
<img :src="tempUrl" />
<div class="other-elements">
<p>There is something here</p>
@@ -26,16 +26,18 @@ export default {
computed: {
album: () => store.getters.popoverAlbum,
index: () => store.getters.popoverAlbumIndex,
tempUrl: () => album[index].url.replace('thumb', 'lg')
},
created() {
window.addEventListener('keyup', this.arrowNavigation)
},
mounted() {
beforeMount() {
document.ontouchmove = function (e) {
e.preventDefault();
}
},
beforeDestroy() {
destroyed() {
window.removeEventListener('keyup')
document.ontouchmove = function (e) {
return true;