swiper组件使用touchstart影响使用?

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:25 963 0 全屏看文

AI助手支持GPT4.0

swiper组件使用touchstart影响使用?

实际的项目开发中在swiper组件上想使用touchstart以及touchend做左滑进入详情页的功能, 功能是实现了,但是swiper切换有时候滑动不了(重复滑动好几次才行),有没有什么好的解决方案吗?

In the actual project development, you want to use touchstart and touchend to slide left into the detail page on the swipper component. The function is implemented, but sometimes the swipper switch can't slide (repeatedly slide several times). Is there any good solution?

回答:

?:

bindanimationfinish用这个方法

-EOF-

AI助手支持GPT4.0