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

位置记录问题 #500

Closed
SPStore opened this issue Jan 6, 2024 · 1 comment
Closed

位置记录问题 #500

SPStore opened this issue Jan 6, 2024 · 1 comment

Comments

@SPStore
Copy link

SPStore commented Jan 6, 2024

你这个框架不会记录滚动位置。
比如A页面滚动到第五行,再横向切换到B页面,B页面不论怎么滑动,再切换回A,A页面都应该停留在第五行,你这个每次都会恢复到第一行。有些主流app是会记录的,比如美团、微博

@pujiaxin33
Copy link
Owner

A页面滚动到第5行,切到B页面,滚动之后,如果往下滑动,显示了header视图。这个时候就会把所有列表(也就是A、B页面的contentoffset.y 更新为0,也就是置顶了),这就是你反馈中的没有记录滚动位置。
相反如果你切换到B页面,如果不显示header,再切换到A页面,这个时候A页面的位置是被记录了的,没有被重置。

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