我现在看到手指触摸时UP事件和最后一个MOVE事件所拿到的点是相同的,也就是getX()
和getY()
的值是相同。
这个是跟特定设备有关还是Android
就是这么设计的?
怪我咯2017-04-18 09:15:59
The position where your finger is at the moment you lift it is the final position of Move. Down--(Move)--Up is a series of seamless actions. There will be no sudden split or jump in the middle.
黄舟2017-04-18 09:15:59
This should be regarded as a natural phenomenon. UP is the movement of raising the finger, and Move is the movement of sliding the finger. Imagine you lift your hand after sliding your finger, then the position you lift can only be the last position you slid. Maybe you think these two positions should be distinguished, but you can think about it again. As a program, it is impossible for it to know when you want to end, so it can only think that you are moving until you end.