OSDN Git Service

Fix x coordinate of the ACTION_UP event in TouchUtils.drag() method
authorMarc Capdevielle <marc.capdevielle@gmail.com>
Fri, 5 Feb 2010 18:28:23 +0000 (19:28 +0100)
committerMarc Capdevielle <marc.capdevielle@gmail.com>
Fri, 5 Feb 2010 18:28:23 +0000 (19:28 +0100)
commit8621cfa43fd12b5ad1376eb1a2454729ce9d9c7e
treedcde40e85df9636b32731ebd31410460be535d90
parent8ab11f87acf01b830ad0db46ec549406b33c39de
Fix x coordinate of the ACTION_UP event in TouchUtils.drag() method

The ACTION_UP event was fired at the "fromX" position instead of being
fired at the "toX" position which is the current value of local var "x".

This bug had no real impact as the VelocityTracker always ignores the last
MotionEvent when it received more than 3 events...
test-runner/android/test/TouchUtils.java