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
最近写了一个歌词的显示控件,用了这个虚拟滚动组件
希望作者可以支持一下
The text was updated successfully, but these errors were encountered:
背景是:你控制滚动的时候是需要获取当前行歌词的高度,然后滚动到中间吗?这时候出现了滚动后又抖动了一下?
Sorry, something went wrong.
对,我会获取当前行的高度,然后让这个歌词滚动到中心位置 实际上的效果是,组件并不知道各个歌词的具体高度,只有我一开始给的大概的高度,所以当第一次滚动过去以后组件内部元素的实际高度发生了变化,这个时候代码计算出的scrollTop就变化了。 因为歌词中心位置的计算是跟着时间不断变动的,这个时候就会发生抖动 需要作者大大可以支持一下:在list里面添加一个属性标识item的高度。这样就提前告知了组件每个item的高度
有的,使用getItemSize方法就可以获取
No branches or pull requests
最近写了一个歌词的显示控件,用了这个虚拟滚动组件
希望作者可以支持一下
The text was updated successfully, but these errors were encountered: