feat:Scroller add contentOffset property

This commit is contained in:
pengfei.zhou
2020-03-03 13:23:06 +08:00
committed by osborn
parent 46255632ec
commit 6d7562877e
12 changed files with 314 additions and 265 deletions

View File

@@ -150,7 +150,7 @@ class MovieVM extends ViewModel<MovieModel, MovieVH>{
imageUrl: e.images.large,
onClick: () => {
this.updateState(state => state.selectedIdx = idx)
vh.scrolled.scrollTo(context, { x: idx * 200, y: 0 })
vh.scrolled.contentOffset = { x: idx * 200, y: 0 }
},
})
],