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

怎么设置不循环滚动 #24

Closed
cczhr opened this issue Jul 7, 2021 · 4 comments
Closed

怎么设置不循环滚动 #24

cczhr opened this issue Jul 7, 2021 · 4 comments

Comments

@cczhr
Copy link

cczhr commented Jul 7, 2021

DateTimeController 把wrapSelectorWheel设为false 滚轮上方还是有最大值

@loper7
Copy link
Owner

loper7 commented Jul 8, 2021

我在demo上跑了一遍,没有复现这样的问题,你可以下载demo设置最大值和最小值尝试,需要注意的是,诸如年份变动之类的动作如果触发了最大最小值约束,由于重置了后位单位的值,所以即使设置了禁止循环滚动,但依旧会在上方显示最大值,但此时是无法向上滚动的。

@cczhr
Copy link
Author

cczhr commented Jul 8, 2021

我把你的NumberPicker 改用回 https://github.com/ShawnLin013/NumberPicker “由于重置了后位单位的值,所以即使设置了禁止循环滚动,但依旧会在上方显示最大值” 这个问题就解决了

@cczhr
Copy link
Author

cczhr commented Jul 8, 2021

“诸如年份变动之类的动作如果触发了最大最小值约束,由于重置了后位单位的值,所以即使设置了禁止循环滚动,但依旧会在上方显示最大值,但此时是无法向上滚动的。” 禁止循环滚动的情况下 感觉没必要上方显示最大值。

@loper7
Copy link
Owner

loper7 commented Jul 8, 2021

👍
我去更新一下numberpicker库

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