导航

    Taro 社区

    Taro

    • 注册
    • 登录
    • 搜索
    • 版块
    • 最新
    • 话题
    • 热门
    • 群组
    1. 主页
    2. moonreplace
    M
    • 资料
    • 关注
    • 粉丝
    • 主题
    • 帖子
    • 最佳
    • 群组

    moonreplace

    @moonreplace

    0
    声望
    2
    帖子
    449
    资料浏览
    0
    粉丝
    0
    关注
    注册时间 最后登录

    moonreplace 关注

    moonreplace 发布的帖子

    • RE: Taro 1.3 的scroll组件在chrome浏览器上报Added non-passive event listener to a scroll-blocking 'touchmove' event

      版本:1.3.2 , 1.3.5, 1.3.5, 在1.2上没有这个问题,相同的代码

                           <ScrollView
                                  scrollX
                                  className="container"
                                  id="demoContainer"
                                  scrollLeft={listScrollLeft}
                                  onScroll={this.onScoll}
                                  scrollWithAnimation="true"
      
                              >
                                  {listist.map((item, index) => {
                                     
                                      return (
                                          <View key={index} className="list-item">
                                              <View onClick={this.test.bind(this, item, index)}>
                                                  <View className="wrapper">
                                                      <Image />
                                                  </View>
                                              </View>
                                        </View>
                                       )
                       </ScrollView>
      
      发布在 H5
      M
      moonreplace
    • Taro 1.3 的scroll组件在chrome浏览器上报Added non-passive event listener to a scroll-blocking 'touchmove' event

      1.3版本的scroll组件在chrome控制台里一直报这个warning [Violation] Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

      发布在 H5
      M
      moonreplace