We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题描述 小程序当中,同一页面下,Swiper 和 ScrollView 共存时, 使用 setState 修改 ScrollView 的 scrollIntoView 属性,使滚动到某一元素, 后自行滚动到其它地方, 监听 Swiper 的 onChange,每隔5s触发一 setState 操作,那么在其触发时,ScorllView 会再次滚动到前面 setState 的 scrollIntoView 处,
Swiper
ScrollView
setState
scrollIntoView
onChange
ScorllView
复现步骤
// Swiper 的配置 { autoplay: true, interval: 5000, duration: 300, circular: true, displayMultipleItems: 1, } // Swiper 的 onChange 事件, 此处执行一次 ScrollView 会滚动一次 onChange = e => { this.setState({ currentIndex: e.detail.current, }); } // 结构, // `ScrollView` 为 `taro` 组件, `MySwiper` 自定义组件,内有 `taro` 的 `Swiper` 一枚 <ScrollView> <MySwiper /> </ScrollView>
期望行为 bug 修复
报错信息 无
系统信息
The text was updated successfully, but these errors were encountered:
好的。稍后跟进一下
Sorry, something went wrong.
No branches or pull requests
问题描述
小程序当中,同一页面下,
Swiper
和ScrollView
共存时,使用
setState
修改ScrollView
的scrollIntoView
属性,使滚动到某一元素,后自行滚动到其它地方,
监听
Swiper
的onChange
,每隔5s触发一setState
操作,那么在其触发时,ScorllView
会再次滚动到前面setState
的scrollIntoView
处,复现步骤
期望行为
bug 修复
报错信息
无
系统信息
The text was updated successfully, but these errors were encountered: