![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
移动端
FE焱黑C
日敲代码数百行,不辞长做前端人
展开
-
移动端阻止遮罩层下面的body滑动
<div v-if="type === 5" :class="isOpen ? 'zanShare' : 'zanShare no'" @scroll.prevent @touchmove.prevent > <div class="zanContent"> <div class="zanContent_img"></div> ...原创 2019-05-15 17:09:51 · 814 阅读 · 0 评论 -
阻止H5左右滑动,保留上下滑动
let startX,startY; document.addEventListener("touchstart",function(e){ startX = e.touches[0].pageX; startY = e.touches[0].pageY; }); document.addEventListener("touchmove",function(e){ ...原创 2019-05-28 14:20:36 · 3899 阅读 · 0 评论