mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-23 06:59:15 +08:00
fix(ImagePreview): long vertical images sliding up and down (#11702)
Co-authored-by: xuwenqiang <xuwenqiang@kanzhun.com>
This commit is contained in:
parent
3cc3c29853
commit
d883591b91
@ -188,7 +188,8 @@ export default defineComponent({
|
||||
// allow user to swipe to next image
|
||||
if (
|
||||
(moveX > maxMoveX.value || moveX < -maxMoveX.value) &&
|
||||
!isImageMoved
|
||||
!isImageMoved &&
|
||||
touch.isHorizontal()
|
||||
) {
|
||||
state.moving = false;
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user