当前位置:网站首页>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
})
}
},边栏推荐
- Thread hierarchy in CUDA
- FE - Weex 使用简单封装数据加载插件为全局加载方法
- pytest(2) mark功能
- Deployment API_ automation_ Problems encountered during test
- Pytest (3) parameterize
- Eggjs -typeorm 之 TreeEntity 实战
- Overload global and member new/delete
- FE - Eggjs 结合 Typeorm 出现连接不了数据库
- Pytest (2) mark function
- Vector types and variables built in CUDA
猜你喜欢

qq邮箱接收不到jenkins构建后使用email extension 发送的邮件(timestamp 或 auth.......)

Thread hierarchy in CUDA

Redis -- cache breakdown, penetration, avalanche

20201002 vs 2019 qt5.14 developed program packaging

Huawei mindspire open source internship machine test questions

How to try catch statements that return promise objects in JS

uniapp引入本地字体

ctf三计

pytest(1) 用例收集规则

Distributed transactions: the final consistency scheme of reliable messages
随机推荐
Win10:添加或者删除开机启动项,在开机启动项中添加在用户自定义的启动文件
Browser scrolling for more implementations
Fe - use of weex development weex UI components and configuration use
pytest(1) 用例收集规则
Render minecraft scenes into real scenes using NVIDIA GPU
20201002 VS 2019 QT5.14 开发的程序打包
AWD learning
Eslint configuration code auto format
奇葩pip install
Redis -- cache breakdown, penetration, avalanche
Deployment API_ automation_ Problems encountered during test
Alibaba cloud MFA binding Chrome browser
Apt command reports certificate error certificate verification failed: the certificate is not trusted
Win10桌面图标没有办法拖动(可以选中可以打开可以删除新建等操作但是不能拖动)
Thread hierarchy in CUDA
[self cultivation of programmers] - Reflection on job hunting Part II
Nodejs - Express middleware modification header: typeerror [err_invalid_char]: invalid character in header content
默认google浏览器打不开链接(点击超链接没有反应)
Self study table Au
[literature reading and thought notes 13] unprocessing images for learned raw denoising