gzu-liyujiang / gzu-liyujiang/AndroidPicker

WheelView会处理点击事件

Open
#275 1 comment 1 reaction 0 assignees View on GitHub
enhancement wontfix
Dominant language
Java
Stars
6.8k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

WheelView点击事件的判断未生效

> handleActionMove这个方法中的点击事件判读有问题

![1637768196(1)](https://user-images.githubusercontent.com/18340690/143268574-da1dda5f-aea6-412b-9e16-312bbde38c48.jpg)
1、截图中标红的endPoint变量在down事件时值一直为0,导致了isClick一直为false,如下是打印的log
![1637768479(1)](https://user-images.githubusercontent.com/18340690/143269405-ab0d4de9-2922-4526-9164-fd9d1dffd1c3.jpg)
2、将endPoint的判断注释,仅仅依靠滑动距离判断就正常了没啥异常

有时间请帮忙看一下这个问题,谢谢

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating WheelView.handleActionMove and inspect how endPoint is initialized during the down event and used in the click decision. Reproduce the reported logging behavior, then verify that click detection works without breaking distance-based scrolling; the issue provides screenshots but no test file or named source path.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.