10.解决移动端300ms延迟
简介:FastClick is a simple, easy-to-use library for eliminating the 300ms delay between a physical tap and the firing of a event on mobile browsers. The aim is to make your application feel less laggy and more responsive while avoiding any interference with your current logic.
安装
1
npm i fastclick --save
导入(main.js)
1
import FastClick from 'fastclick'
使用
1
2//使用fastClick,解决300ms延迟,全局使用
FastClick.attach(document.body)
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Dong!
评论