当前位置:网站首页>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
})
}
},
边栏推荐
- selenium+msedgedriver+edge浏览器安装驱动的坑
- js中map和forEach的用法
- The intern left a big hole when he ran away and made two online problems, which made me miserable
- (the 100th blog) written at the end of the second year of doctor's degree -20200818
- Summary of advertisement business bug replay
- Win10网络图标消失,网络图标变成灰色,打开网络设置闪退等问题解决
- How to try catch statements that return promise objects in JS
- 奇葩pip install
- Virtualenv and pipenv installation
- 蚂蚁集团g6初探
猜你喜欢
There is no way to drag the win10 desktop icon (you can select it, open it, delete it, create it, etc., but you can't drag it)
ctf三计
[literature reading and thought notes 13] unprocessing images for learned raw denoising
Build learning tensorflow
Queue (linear structure)
Latex compilation error I found no \bibstyle &\bibdata &\citation command
[Zhang San learns C language] - deeply understand data storage
Idea announced a new default UI, which is too refreshing (including the application link)
Stack (linear structure)
The intern left a big hole when he ran away and made two online problems, which made me miserable
随机推荐
web自动中利用win32上传附件
js删除字符串的最后一个字符
The default Google browser cannot open the link (clicking the hyperlink does not respond)
Usage of map and foreach in JS
部署api_automation_test过程中遇到的问题
Fe - eggjs combined with typeorm cannot connect to the database
CTF web practice competition
Pytest (1) case collection rules
Win电脑截图黑屏解决办法
Recursion (maze problem, Queen 8 problem)
js创建一个自定义json数组
sprintf_ How to use s
js判断对象是否为空
Self cultivation of programmers - Reflection on job hunting
Functions of tensorrt
Stress test modification solution
selenium备忘录:selenium\webdriver\remote\remote_connection.py:374: ResourceWarning: unclosed<xxxx>解决办法
[daily question 1] write a function to judge whether a string is the string after the rotation of another string.
浏览器滚动加载更多实现
js判断数组中对象是否存在某个值