当前位置:网站首页>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
})
}
},边栏推荐
- The win10 network icon disappears, and the network icon turns gray. Open the network and set the flash back to solve the problem
- 2020-9-23 QT的定时器Qtimer类的使用。
- Sentinel rules persist to Nacos
- flex九宫格布局
- Latex参考文献引用失败 报错 LaTeX Warning: Citation “*****” on page y undefined on input line *
- pytest(1) 用例收集规则
- Fe - weex uses a simple encapsulated data loading plug-in as the global loading method
- CVE-2015-1635(MS15-034 )远程代码执行漏洞复现
- Uploading attachments using Win32 in Web Automation
- Win10桌面图标没有办法拖动(可以选中可以打开可以删除新建等操作但是不能拖动)
猜你喜欢

The use of regular expressions in JS

CTF three count

Queue (linear structure)

Shardingsphere JDBC

解决微信小程序swiper组件bindchange事件抖动问题

Build learning tensorflow

默认google浏览器打不开链接(点击超链接没有反应)

Win10: add or delete boot items, and add user-defined boot files to boot items

The intern left a big hole when he ran away and made two online problems, which made me miserable

Latex 报错 LaTeX Error: The font size command \normalsize is not defined问题解决
随机推荐
Kali latest update Guide
How to try catch statements that return promise objects in JS
Unexpected inconsistency caused by abnormal power failure; Run fsck manually problem resolved
[literature reading and thought notes 13] unprocessing images for learned raw denoising
virtualenv和pipenv安装
Warp shuffle in CUDA
No process runs when querying GPU, but the video memory is occupied
unittest.TextTestRunner不生成txt测试报告
工具种草福利帖
After reading useful blogs
CVE-2015-1635(MS15-034 )远程代码执行漏洞复现
sprintf_ How to use s
A preliminary study on ant group G6
QQ email cannot receive the email sent by Jenkins using email extension after construction (timestamp or auth...)
Apt command reports certificate error certificate verification failed: the certificate is not trusted
PgSQL learning notes
ctf-web之练习赛
Sentry搭建和使用
js删除字符串的最后一个字符
JS modification element attribute flipping commonly used in selenium's Web Automation