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

WheelView里面的getSelectedText() 这个方法上滑时获取的不对 #4

Open
kaiyuanshengshichangan opened this issue Mar 1, 2016 · 1 comment

Comments

@kaiyuanshengshichangan
Copy link

WheelView里面的getSelectedText() 这个方法上滑时 获取到的是上一条数据,下滑的时候正确,如何改正呢

@ALEX-YxTY
Copy link

isSelected()方法中的判断条件有误,前两个判断条件应该改为:
//上边缘在中心上半部分 if ((y + move) >= controlHeight / 2 - unitHeight/2 && (y + move) <= controlHeight / 2 ) { return true; }

//下边缘在中心下半部分 if ((y + move + unitHeight) >= controlHeight / 2 && (y + move + unitHeight) <= controlHeight / 2 + unitHeight / 2) { return true; }

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