8000 条目少的时候,会把内容滚消失 · Issue #7 · zyyoona7/WheelPicker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
条目少的时候,会把内容滚消失 #7
Closed
@lcz1688

Description

@lcz1688

screenshot_20190122-110502
我只有三个条目,当上方或者下方有空白条目时,点空白处,会计算滚动.多次点击,内容会消失
int clickToCenterDistance = 0;
if (System.currentTimeMillis() - mDownStartTime <= DEFAULT_CLICK_CONFIRM) {
//处理点击滚动
//手指抬起的位置到中心的距离为滚动差值
clickToCenterDistance = (int) (event.getY() - mCenterY);
}
你这里是无限上滚或者下滚的.我没想到怎么处理,只好注释了
// clickToCenterDistance = (int) (event.getY() - mCenterY);,这样就去掉了点击事件
.版主试试看怎么解决下,谢谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0