as a work-around, you could subscribe to swiper's 'zoomChange' event and based on the scale (one of 3 args of it) update the mySwiper.allowTouchMove
to false
.
(作为一种变通方法,您可以订阅swiper的'zoomChange'事件,然后基于比例(其中3个参数之一)将mySwiper.allowTouchMove
更新为false
。)
that worked for me in the Vue app.(在Vue应用中对我有用。)
my use-case
(我的用例)
yourCallbackToEvent(scale) {
yourSwiper.allowTouchMove = scale === 1;
};
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…