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

ScrollPane的ScrollToView滚动的时候存在问题 #208

Open
JiuMengDz opened this issue Jul 10, 2023 · 1 comment
Open

ScrollPane的ScrollToView滚动的时候存在问题 #208

JiuMengDz opened this issue Jul 10, 2023 · 1 comment

Comments

@JiuMengDz
Copy link

ScrollToView无法正常滚动。看了下源码应该是right和bottom算错了?
之前的计算是
float bottom = _yPos + _viewSize.y;
而实际应该是 rect.y + _viewSize.y 得到bottom
另外如果在刚好相等的情况下,应该是允许滚动的。为什么反而在相等的时候不允许滚动了呢?

@xiaoguzhu
Copy link
Member

计算没有问题。
是指什么相等?建议出个demo看看问题。

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