当前位置:网站首页>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
})
}
},边栏推荐
- Code execution sequence with and without resolve in promise
- js中map和forEach的用法
- js删除字符串的最后一位
- Tensorrt command line program
- How to debug wechat built-in browser applications (enterprise number, official account, subscription number)
- Error "list" object is not callable in Web automatic switching window
- web自动中利用win32上传附件
- ZZQ的博客目录--更新于20210601
- Record RDS troubleshooting once -- RDS capacity increases dramatically
- The use of regular expressions in JS
猜你喜欢

The table component specifies the concatenation parallel method

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

由于不正常断电导致的unexpected inconsistency;RUN fsck MANUALLY问题已解决

Implement strstr() II

Latex在VSCODE中编译中文,使用中文路径问题解决

Linux MySQL 5.6.51 community generic installation tutorial

Detailed definition of tensorrt data format

Sentinel Alibaba open source traffic protection component

table 组件指定列合并行方法

Queue (linear structure)
随机推荐
Latex warning: citation "*****" on page y undefined on input line*
Loops in tensorrt
[daily question 1] write a function to judge whether a string is the string after the rotation of another string.
Nodejs - Express middleware modification header: typeerror [err_invalid_char]: invalid character in header content
Function execution space specifier in CUDA
NodeJs - Express 中间件修改 Header: TypeError [ERR_INVALID_CHAR]: Invalid character in header content
apt命令报证书错误 Certificate verification failed: The certificate is NOT trusted
20201025 Visual Studio2019 QT5.14 信号和槽功能的使用
如何调试微信内置浏览器应用(企业号、公众号、订阅号)
Eggjs -typeorm treeenity practice
Recursion (maze problem, Queen 8 problem)
The intern left a big hole when he ran away and made two online problems, which made me miserable
20201002 vs 2019 qt5.14 developed program packaging
Présence d'une panne de courant anormale; Problème de gestion de la fsck d'exécution résolu
How to debug wechat built-in browser applications (enterprise number, official account, subscription number)
2020-9-23 QT的定时器Qtimer类的使用。
FE - 微信小程序 - 蓝牙 BLE 开发调研与使用
There are multiple good constructors and room will problem
FE - Eggjs 结合 Typeorm 出现连接不了数据库
Fe - weex uses a simple encapsulated data loading plug-in as the global loading method