文件名称:swiperjs:移动优先滑动控制
文件大小:2KB
文件格式:ZIP
更新时间:2024-05-20 22:23:31
JavaScript
swiperjs swiperjs是一个自定义事件,如果它长于50像素,则可为您提供滑动的方向。 只需将脚本包含在html中,然后监听“ swipe”事件 [removed][removed] [removed] window.addEventListener('swipe', (swipeEvent)=>{ console.log(swipeEvent.detail) }) [removed] 并享受乐趣! PS:swiper.js正在侦听该事件,以禁用日志消息注释文件中的第19行。
【文件预览】:
swiperjs-master
----README.md(467B)
----.gitattributes(66B)
----swiper.js(2KB)
----index.html(294B)