当前位置:网站首页>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
})
}
},边栏推荐
- Warp shuffle in CUDA
- The intern left a big hole when he ran away and made two online problems, which made me miserable
- apt命令报证书错误 Certificate verification failed: The certificate is NOT trusted
- [daily question 1] write a function to judge whether a string is the string after the rotation of another string.
- Présence d'une panne de courant anormale; Problème de gestion de la fsck d'exécution résolu
- CUDA user object
- FE - Weex 使用简单封装数据加载插件为全局加载方法
- Shardingsphere JDBC
- There are multiple good constructors and room will problem
- js删除字符串的最后一个字符
猜你喜欢

Latex compilation error I found no \bibstyle &\bibdata &\citation command

The use of regular expressions in JS

The table component specifies the concatenation parallel method

由於不正常斷電導致的unexpected inconsistency;RUN fsck MANUALLY問題已解决

How to debug wechat built-in browser applications (enterprise number, official account, subscription number)

Sentry搭建和使用

Blog directory of zzq -- updated on 20210601

VSCODE 安装LATEX环境,参数配置,常见问题解决

Win10网络图标消失,网络图标变成灰色,打开网络设置闪退等问题解决

pytest(2) mark功能
随机推荐
Win10:添加或者删除开机启动项,在开机启动项中添加在用户自定义的启动文件
Win10网络图标消失,网络图标变成灰色,打开网络设置闪退等问题解决
virtualenv和pipenv安装
默认google浏览器打不开链接(点击超链接没有反应)
Browser scrolling for more implementations
qq邮箱接收不到jenkins构建后使用email extension 发送的邮件(timestamp 或 auth.......)
Android - Kotlin 下使用 Room 遇到 There are multiple good constructors and Room will ... 问题
部署api_automation_test过程中遇到的问题
js创建一个自定义json数组
flex九宫格布局
VSCODE 安装LATEX环境,参数配置,常见问题解决
Promise中有resolve和无resolve的代码执行顺序
工具种草福利帖
20201002 VS 2019 QT5.14 开发的程序打包
Virtualenv and pipenv installation
(the 100th blog) written at the end of the second year of doctor's degree -20200818
Latest CUDA environment configuration (win10 + CUDA 11.6 + vs2019)
CUDA and Direct3D consistency
JS modification element attribute flipping commonly used in selenium's Web Automation
js判断数组中对象是否存在某个值