收藏
回答

如何解决swiper-item里嵌套scroll-view会出现滚动卡顿?

在swiper-item里嵌套scroll-view后,肉眼可见的滚动掉帧卡顿,如何解决?

回答关注问题邀请回答
收藏

3 个回答

  • 社区技术运营专员--阳光
    社区技术运营专员--阳光
    2022-04-10

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2022-04-10
    有用
    回复 1
    • noritake
      noritake
      2022-04-10
      您好!我试着用简单的代码写就不卡了。但是自己的小程序可能是由于组件调用、数据量大等其他原因影响,真的是肉眼可见的非常卡顿!
      2022-04-10
      回复
  • brave
    brave
    2022-04-09
    <view class="scroll"></view>
    .scroll {
      width: 100vw;
      height: 100vh;
      // height: calc(100v - 100rpx);
      overflow: scroll;
      -webkit-overflow-scrolling: touch;
    }
    
    2022-04-09
    有用 3
    回复 6
    • noritake
      noritake
      2022-04-09
      还是卡顿。请问您这里的view是scroll-view里的view吗?
      2022-04-09
      回复
    • brave
      brave
      2022-04-09回复noritake
      把scroll-view去掉,换成这个
      2022-04-09
      回复
    • noritake
      noritake
      2022-04-09回复brave
      哦哦好的,我试试
      2022-04-09
      回复
    • noritake
      noritake
      2022-04-09回复brave
      还是卡顿...
      2022-04-09
      回复
    • QING-097এ᭄
      QING-097এ᭄
      2022-06-27回复noritake
      我也遇到这个问题 高度为百分百就卡住了 改为500px它又正常了
      2022-06-27
      回复
    查看更多(1)
  • 扑空
    扑空
    2022-11-04

    已复现,此BUG复现的步骤

    1、scroll-view 启用 enhanced 特性

    2、内层的scroll-view 的内容宽度未超出盒子 (只有一个item),真机查看就会掉帧。


    2022-11-04
    有用
    回复
登录 后发表内容