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
-
具体 Taro 版本? 以及你的代码结构贴一下
-
版本: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>