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.
This commit is contained in:
parent
51b14cc615
commit
f96e5882d1
3 changed files with 93 additions and 16 deletions
|
@ -13,6 +13,7 @@
|
|||
:title="currentMedia.description"
|
||||
@touchstart.stop="mediaTouchStart"
|
||||
@touchmove.stop="mediaTouchMove"
|
||||
@touchend.stop="mediaTouchEnd"
|
||||
@click="hide"
|
||||
@load="onImageLoaded"
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue