[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example becaus
使用vue-awesome-swiper时报的错
1、[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.
解决方案:
给body加上ontouchstart
这个操作是进行手机端兼容处理的,防止伪类:active失效。
2、Module not found: Error: Cannot resolve module 'swiper/css/swiper.css'
一开始是根据github上的swiper vue-awesome-swiper教程安装,安装完运行npm run dev
发现一直报这个错,查了node_modules下的swiper根本没有css这个目录,后来在npm install swiper vue-awesome-swiper --save
运行后控制台出现提示:vue-awesome-swiper@4.1.1要和swiper@5.2.0搭配使用才有效
解决方案:
npm i vue-awesome-swiper -S
npm i swipre@5.2.0 -S
运行后正常,而且能找到swiper/css/swiper.css
目录了
3 轮播图根据官网配置自动轮播,也是没有自动轮播
原因:版本问题,不同的swiper版本api不同,所以要看对应的swiper版本的api
4移动端常见的一些兼容性问题
链接:移动端常见的一些兼容性问题
[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example becaus相关推荐
- 三种方法解决[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false
问题背景,开发一个uniapp项目时,需要使用做一个能左右滑动的表,如下图 使用的组件为scroll-view,代码截图 bug:左右滑动时,会报错,报错信息如下 [Intervention] Ign ...
- [Intervention] Ignored attempt to cancel a touchmove event with cancelable=false
今天,在解决微信内部vue页面拖拽冲突的时候(感谢微信浏览器拖动出现黑色/白色背景.网址问题解决方案提供的方案)使用e.preventDefault();的时候,代码报错: [Intervention ...
- 解决报错,Ignored attempt to cancel a touchmove event with cancelable=false
最近在学uni-app,写项目的时候使用 scroll-view 组件, 每次滚动,控制台都会报如下错误 [Intervention]Ignored attempt to cancel a touch ...
- Ignored attempt to cancel a touchmove event with cancelable=false问题
前言:关于我在uniapp项目中使用到了u-popup弹层又在里面加入了scoll-view实现滚动,当我想试下下拉触底的时候弹出该错误,那么我们还如何解决! Ignored attempt to c ...
- Ignored attempt to cancel a touchmove event with cancelable=false
解决Ignored attempt to cancel a touchmove event with cancelable=false, 在pages.json中设置该页面 "enableP ...
- better-scroll Ignored attempt to cancel a touchend event with cancelable=false, for example becaus
使用better-scroll在安卓上有以下问题 当页面在滑动中,然后去点击better-scroll,会报 Ignored attempt to cancel a touchend event wi ...
- 修复BUG的完整过程:Ignored attempt to cancel a touchend event with cancelable=false
代码环境 "vue": "^3.2.33", "swiper": "^8.4.2", Bug表现: <swiper ...
- uniapp引用scroll-view拉到画面最底端出现报错
Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is ...
- mintUI vue vue-cli
使用mint-ui 如果滑动过快的话会报Ignored attempt to cancel a touchmove event with cancelable=false, for example b ...
最新文章
- PostgreSQL在何处处理 sql查询之三十九
- MySQL参数调优[转载]
- python解析数据包时出现问题_MySQL Connector / Python InterfaceError:“解析EOF数据包失败”...
- 【数学与算法】KMeans聚类代码
- Oracle Proc开发之Makefile的编写模板
- 深度学习在AEC中的应用探索
- linux 升级 iphone,Linux 5.13 更新有望增加对苹果 M1 处理器的支持
- 字符(串)输入输出函数
- python第三方库介绍和安装
- java json配置文件_java 读取json文件配置
- 随机产生大写字母c语言,C语言程序设计 (英文打字练习)
- JVM内存模型和性能调优:JVM整体结构及内存模型- 第10篇
- 机器人挠人脚心_美国惊现“挠脚狂魔” 潜入宿舍挠人脚心
- tyvj P1517 飘飘乎居士的乌龟(最大流)
- Docker三剑客详解
- 手机图片到底要做多宽才可以适应所有手机屏幕的尺寸?
- burpsuite代理监听
- 怎么快速发表期刊论文
- 微信群影视机器人登录使用教程
- 【科研技巧】PPT如何导出1000dpi的图片
热门文章
- 千兆以太网工程模块划分总结与分析
- 如何优雅地申请Android运行时权限
- A. apache的安装
- 教你如何快速提取视频中的音频
- xendesktop 打开DDC的Desktop Studio控制台和用户访问Web Interface有时候会非常慢
- CAPL 脚本对.ini 配置文件的高阶操作
- 【最小生成树】JZOJ_5353 村通网
- 太原理工大学系统分析与设计实验报告实验室设备_警钟长鸣!盘点国内高校实验室事故...
- 树莓派linux谷歌浏览器设置,树莓派4B踩坑指南 - (12)谷歌浏览器书签同步
- 项目 cg day06