scxxf
scxxf
  • 发布:2022-05-06 17:36
  • 更新:2022-05-07 16:44
  • 阅读:757

scroll-view滑动失效

分类:uni-app

使用scroll-view出现上下无法滑动,但偶尔又会滑动,但很卡,不知道问题出在哪里?
<scroll-view v-if="inputdata.length>1" :scroll-top="scrollTop" scroll-y="true" show-scrollbar="true" class="scrollview" @scrolltolower="scrolltolower" @scrolltoupper="scrolltoupper" @scroll="scroll">
<view class="scrollview1">
<view class="scrollview2" v-for="(line, lineIndex) in inputdata" :key="lineIndex">
{{line}}
</view>
</view>
</scroll-view>

.scrollview{
width: 100%;
height: 160upx;
padding-left: 170upx;

}
.scrollview1{
width: 100%;
overflow: auto;
}
.scrollview2{
width: 100%;
height: 40upx;
margin-top: 5upx;
}

2022-05-06 17:36 负责人:无 分享
已邀请:
FullStack

FullStack - 【插件开发】【专治疑难杂症】【ios上架、马甲包、白包、过审、已成功上架过几百个】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=22130】【非诚勿扰】QQ:543610866

包裹有问题

scxxf

scxxf (作者)

问题已解决,主要原因是在弹窗上使用scroll-view,滑动被阻止了,解决方案如下:
<view @touchmove.stop.prevent="moveStop">//在mark上加个阻止滚动
<view @touchmove.stop="moveStop"></view>//内部需要滚动的加个允许滚动
</view>

  • 2***@qq.com

    能再具体说下吗?碰到同样问题

    2023-12-20 10:44

该问题目前已经被锁定, 无法添加新回复