diff options
| author | Tusooa Zhu <tusooa@kazv.moe> | 2021-08-01 13:39:56 -0400 |
|---|---|---|
| committer | Tusooa Zhu <tusooa@kazv.moe> | 2022-03-13 11:56:30 -0400 |
| commit | f96e5882d16a8662ceb7b8cc6aa36fe131a2682f (patch) | |
| tree | fc9decc1e75e4413d86ee1f8d2333282b0353688 /src/components/media_modal/media_modal.vue | |
| parent | 51b14cc61578c6aee80fbf63dce2dbb7503914bb (diff) | |
Make media modal be aware of multi-touch actions
Originally the media viewer would think every touch is a swipe (one-finger
touch event), so we would encounter the case where a two-finger scale event
would incorrectly change the current media. This is now fixed.
Diffstat (limited to 'src/components/media_modal/media_modal.vue')
| -rw-r--r-- | src/components/media_modal/media_modal.vue | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/media_modal/media_modal.vue b/src/components/media_modal/media_modal.vue index 8680267b..b5a65d50 100644 --- a/src/components/media_modal/media_modal.vue +++ b/src/components/media_modal/media_modal.vue @@ -13,6 +13,7 @@ :title="currentMedia.description" @touchstart.stop="mediaTouchStart" @touchmove.stop="mediaTouchMove" + @touchend.stop="mediaTouchEnd" @click="hide" @load="onImageLoaded" > |
