WheelPicker icon indicating copy to clipboard operation
WheelPicker copied to clipboard

手指点击导致flying状态终止的时候, 不会重新选定item

Open 531227501 opened this issue 8 years ago • 8 comments

大力(出奇迹)滚动, 在picker处于flying的时候, 手机按下使picker强行停止滚动, 然后手指抬起, 这个时候picker不会自动滚动到最近的item, 也许会处于2个item之间, 并且(重要的是), 虽然picker经历的滚动->停止这个过程, 但是并没有重新选定数值, 相当于这次滚动一直没有停止.

try it?

531227501 avatar Aug 09 '16 04:08 531227501

我在5x上没有重现到你说的情况,我滑动picker使其处于滚动状态然后突然放下手指迫使其停止,手指抬起后依然会滚到最近的item

devaige avatar Aug 09 '16 08:08 devaige

不能直接传视频, 只能压缩一下了, 你需要下载下来才能看. 我的设备是三星 S6, SM-G9200

1470735461938.mp4.zip

531227501 avatar Aug 09 '16 09:08 531227501

妈蛋!用的1.1.1么

devaige avatar Aug 09 '16 10:08 devaige

啊, 是1.1.1; 我又试了试, 和设备无关, 1.1.1就会有这个问题; 你啥时候调整啊, 有计划吗, 我看看我是等你更新还是直接用1.1.1;

531227501 avatar Aug 09 '16 10:08 531227501

Based on the video, I guess I have the same problem. If you scroll hard and just stop the scroll it can get stuck between two values Is there a fix? I use 1.1.2

ezgif-2357823105

spidfire avatar Nov 14 '16 11:11 spidfire

部分机型有此问题(机型 Android版本),测试了的部分手机 正常:HUAWEI NEM-AL10 6.0,HUAWEI TIT-TL00 5.1 异常:vivo Y51 5.1.1,SM-G9009W 5.0(Galaxy S5),SM-N9200(Galaxy Note5) 6.0.1

wujiangyong2014 avatar Feb 11 '17 09:02 wujiangyong2014

解决方案: WheelPicker 的 onTouchEvent MotionEvent.ACTION_UP中将if (isClick) break;删除即可

wujiangyong2014 avatar Feb 11 '17 09:02 wujiangyong2014

请教下aige大大,添加isClick 这个判断是出于什么考虑的

wujiangyong2014 avatar Feb 11 '17 09:02 wujiangyong2014