Skip to content
New issue

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

reverseDirection使用起来不是很方便 #179

Open
wtmsuperman opened this issue Aug 15, 2024 · 1 comment
Open

reverseDirection使用起来不是很方便 #179

wtmsuperman opened this issue Aug 15, 2024 · 1 comment

Comments

@wtmsuperman
Copy link

wtmsuperman commented Aug 15, 2024

开启reverseDirection后,RefillCells(0),会把index修改。不过我其实本意是想要一个从下往上滑的列表,最底部应该是0,目前等于是滑倒了最底部。我目前是在回调里又转了一遍index。。
另外ScrollToCellWithinTime使用index,貌似并没有转换index。

我准备不使用reverseDirection,业务侧把index转换了

@qiankanglai
Copy link
Owner

不如试试RefillCellsFromEnd? 这个其实就是专为reverseDirection设计的来着...
ScrollToCellWithinTime确实没考虑,其实理论上应该有个对称的ScrollToCellFromEndWithinTime才对【一直偷懒还没弄orz】

这套reverseDirection确实有点麻烦,如果上层业务代码能直接处理掉确实会偷懒一些... 历史原因是两个方向我尝试过整合到一套、然而失败了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants