(app)ScrollView在移动端无效问题
(scroll-view)小程序有效,app无效
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/7404c72d416c20c439402e2f74ee8467.png)
<!-- 分类导航 -->
<scroll-view class="navScroll" enable-flex scroll-x >
<view class="navItem" v-for="(item, index) in navItemList" :key="item.id" >
<view :class="navId == item.id?'navContent active': 'navContent'" @click="changeNav" :id="item.id" >{{item.value}}</view>
</view>
</scroll-view>
(Horizontal-scroll-view)都有效
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/c4347469f9bdb482fb35f0f3eedaba8c.png)
<!-- 分类导航 -->
<Horizontal-scroll-view class="navScroll" enable-flex scroll-x >
<view class="navItem" v-for="(item, index) in navItemList" :key="item.id" >
<view :class="navId == item.id?'navContent active': 'navContent'" @click="changeNav" :id="item.id" >{{item.value}}</view>
</view>
</Horizontal-scroll-view>
解决参考:https://blog.csdn.net/fumin466566941/article/details/52872063?spm=1001.2101.3001.6650.17&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-17-52872063-blog-105169150.pc_relevant_3mothn_strategy_and_data_recovery&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-17-52872063-blog-105169150.pc_relevant_3mothn_strategy_and_data_recovery&utm_relevant_index=25