首页 > 编程知识 正文

微信小程序滑动窗口,微信下拉小程序关闭震动

时间:2023-05-04 16:37:53 阅读:179586 作者:246

在小程序的弹匣中,外部页面的滚动是被禁止的,可以在最外部容器上设置catchtouchmove

但是,如果弹匣内部也需要滚动,则需要用scroll-view包裹,设置scroll-y

catchtouchmove需要接收方法。 否则,我会继续受到警告

view class='box '占位符/viewviewclass=' pop ' catchtouchmove=' touch move ' view class=' pop BG '/viewviewclass=' popup ' scroll-view scroll-yviewclass=' row ' wx : for=' { 10 } ' wx 3360 key=' index ' { index } top: 0; left: 0; width: 100%; height: 100%; background : rgba (0,0,0,0.7 ); }.popup { position: fixed; top: 20%; left: 50%; transform:translate(-50%,0 ); width: 70%; background: #fff; z-index: 1; }scroll-view { height: 500rpx; }.row { width: 100%; height: 200rpx; } page ({ touch move } { return } )

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。