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
WheelView里面的getSelectedText() 这个方法上滑时 获取到的是上一条数据,下滑的时候正确,如何改正呢
The text was updated successfully, but these errors were encountered:
isSelected()方法中的判断条件有误,前两个判断条件应该改为: //上边缘在中心上半部分 if ((y + move) >= controlHeight / 2 - unitHeight/2 && (y + move) <= controlHeight / 2 ) { return true; }
//上边缘在中心上半部分 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; }
Sorry, something went wrong.
No branches or pull requests
WheelView里面的getSelectedText() 这个方法上滑时 获取到的是上一条数据,下滑的时候正确,如何改正呢
The text was updated successfully, but these errors were encountered: