当前位置:网站首页>Solve the problem of bindchange event jitter of swiper component of wechat applet
Solve the problem of bindchange event jitter of swiper component of wechat applet
2022-07-02 06:50:00 【xuefankang】

According to the official source To judge swiper Of change What triggers the event ,autoplay It's automatic rotation .touch It is user's manual sliding . The others are unknown problems . Jitter problems are mainly caused by unknown problems , So there are restrictions , Only in automatic rotation and user initiative trigger can we change current value , To avoid jitter bug
// Wheel planting change event
swiperChange(e) {
console.log(e);
var _this = this;
var swiperIndex = e.detail.current;
var source = e.detail.source;
// console.log(' Carousel events index'+index)
if(source == 'autoplay' || source == 'touch') {
_this.setData({
swiperIndex : index
})
}
},边栏推荐
- AWD learning
- Summary of advertisement business bug replay
- PgSQL learning notes
- ctf-web之练习赛
- js中对于返回Promise对象的语句如何try catch
- Warp shuffle in CUDA
- VSCODE 安装LATEX环境,参数配置,常见问题解决
- Atcoder beginer contest 253 F - operations on a matrix / / tree array
- Loops in tensorrt
- Log - 7 - record a major error in missing documents (A4 paper)
猜你喜欢
![[Zhang San learns C language] - deeply understand data storage](/img/b5/cf0bfae8eacf335d3c350c9cbadb87.png)
[Zhang San learns C language] - deeply understand data storage

如何调试微信内置浏览器应用(企业号、公众号、订阅号)

Win10:添加或者删除开机启动项,在开机启动项中添加在用户自定义的启动文件

uniapp引入本地字体

Latex 编译报错 I found no \bibstyle & \bibdata & \citation command

Sublime text configuring PHP compilation environment

Name six schemes to realize delayed messages at one go

Win电脑截图黑屏解决办法

Pytest (1) case collection rules

Alibaba cloud MFA binding Chrome browser
随机推荐
js删除字符串的最后一个字符
PIP install
The win10 network icon disappears, and the network icon turns gray. Open the network and set the flash back to solve the problem
Redis - cluster data distribution algorithm & hash slot
Fe - eggjs combined with typeorm cannot connect to the database
js数组的常用的原型方法
Improve user experience defensive programming
Apt command reports certificate error certificate verification failed: the certificate is not trusted
蚂蚁集团g6初探
Shardingsphere JDBC
工具种草福利帖
Automation - when Jenkins pipline executes the nodejs command, it prompts node: command not found
Sentinel rules persist to Nacos
由于不正常断电导致的unexpected inconsistency;RUN fsck MANUALLY问题已解决
flex九宫格布局
Eggjs -typeorm treeenity practice
Error "list" object is not callable in Web automatic switching window
Atcoder beginer contest 253 F - operations on a matrix / / tree array
部署api_automation_test过程中遇到的问题
There are multiple good constructors and room will problem