mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-23 15:09:16 +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
|
// allow user to swipe to next image
|
||||||
if (
|
if (
|
||||||
(moveX > maxMoveX.value || moveX < -maxMoveX.value) &&
|
(moveX > maxMoveX.value || moveX < -maxMoveX.value) &&
|
||||||
!isImageMoved
|
!isImageMoved &&
|
||||||
|
touch.isHorizontal()
|
||||||
) {
|
) {
|
||||||
state.moving = false;
|
state.moving = false;
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user