diff options
author | Zéro~Informatique | 2023-03-26 18:14:39 +0200 |
---|---|---|
committer | Zéro~Informatique | 2023-03-26 18:15:14 +0200 |
commit | 82101ec4a81d0bbb54611fad43c0a75164770ae1 (patch) | |
tree | 4fda5bc8f3773ee15a3bbdaec584451a891c2ba8 /viewer | |
parent | 1f92cc4f17debdb6991a7f388f8e313d461744ff (diff) | |
download | ldgallery-82101ec4a81d0bbb54611fad43c0a75164770ae1.tar.gz |
viewer: fixed drag 'n drop of pictures on firefox
Diffstat (limited to 'viewer')
-rw-r--r-- | viewer/package.json | 2 | ||||
-rw-r--r-- | viewer/src/views/item_handlers/PictureViewer.vue | 2 | ||||
-rw-r--r-- | viewer/yarn.lock | 8 |
3 files changed, 7 insertions, 5 deletions
diff --git a/viewer/package.json b/viewer/package.json index 36c35fb..a0e5953 100644 --- a/viewer/package.json +++ b/viewer/package.json | |||
@@ -21,7 +21,7 @@ | |||
21 | "pinia": "2.0.23", | 21 | "pinia": "2.0.23", |
22 | "v-lazy-image": "2.1.1", | 22 | "v-lazy-image": "2.1.1", |
23 | "vue": "3.2.41", | 23 | "vue": "3.2.41", |
24 | "vue-dragscroll": "4.0.4", | 24 | "vue-dragscroll": "4.0.5", |
25 | "vue-i18n": "9.1.10", | 25 | "vue-i18n": "9.1.10", |
26 | "vue-router": "4.1.6" | 26 | "vue-router": "4.1.6" |
27 | }, | 27 | }, |
diff --git a/viewer/src/views/item_handlers/PictureViewer.vue b/viewer/src/views/item_handlers/PictureViewer.vue index 74b978f..d091f19 100644 --- a/viewer/src/views/item_handlers/PictureViewer.vue +++ b/viewer/src/views/item_handlers/PictureViewer.vue | |||
@@ -18,12 +18,14 @@ | |||
18 | --> | 18 | --> |
19 | 19 | ||
20 | <template> | 20 | <template> |
21 | <!-- @dragstart.prevent stops Drag 'n Drop of pictures on FireFox --> | ||
21 | <div | 22 | <div |
22 | ref="containerElement" | 23 | ref="containerElement" |
23 | v-dragscroll | 24 | v-dragscroll |
24 | class="scrollbar" | 25 | class="scrollbar" |
25 | :class="$style.pictureContainer" | 26 | :class="$style.pictureContainer" |
26 | @dblclick="uiStore.toggleFullscreen()" | 27 | @dblclick="uiStore.toggleFullscreen()" |
28 | @dragstart.prevent="false" | ||
27 | > | 29 | > |
28 | <img | 30 | <img |
29 | v-if="!error" | 31 | v-if="!error" |
diff --git a/viewer/yarn.lock b/viewer/yarn.lock index 5715dfe..b45d4a6 100644 --- a/viewer/yarn.lock +++ b/viewer/yarn.lock | |||
@@ -6821,10 +6821,10 @@ vue-demi@*: | |||
6821 | resolved "https://registry.yarnpkg.com/vue-demi/-/vue-demi-0.13.11.tgz#7d90369bdae8974d87b1973564ad390182410d99" | 6821 | resolved "https://registry.yarnpkg.com/vue-demi/-/vue-demi-0.13.11.tgz#7d90369bdae8974d87b1973564ad390182410d99" |
6822 | integrity sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A== | 6822 | integrity sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A== |
6823 | 6823 | ||
6824 | vue-dragscroll@4.0.4: | 6824 | vue-dragscroll@4.0.5: |
6825 | version "4.0.4" | 6825 | version "4.0.5" |
6826 | resolved "https://registry.yarnpkg.com/vue-dragscroll/-/vue-dragscroll-4.0.4.tgz#761e77f787d78de321f905dfb44cd6fe10a09101" | 6826 | resolved "https://registry.yarnpkg.com/vue-dragscroll/-/vue-dragscroll-4.0.5.tgz#b07bbbc0300a5dee892bc48b000942a93d258cd8" |
6827 | integrity sha512-2VaDPzvVJKR0FxOwIt9ot53tpVG3K6Qcb7LFOHQ869WVBXWuVcJTXyBRKyrUACY82O3kIdPvj/Kzsw4ZeBkL0w== | 6827 | integrity sha512-1V4/2rUlNTM8vYC6/y2yfjKjOynuCfp1VRpj+IOGCcj8FWl4/3FMs9GBUJShd5mLoD4BvhY1xveezeuD+9i/mw== |
6828 | dependencies: | 6828 | dependencies: |
6829 | vue "^3.2.37" | 6829 | vue "^3.2.37" |
6830 | 6830 | ||